# Get element update function's properties in other action function

**URL:** <https://forum.bubble.io/t/get-element-update-functions-properties-in-other-action-function/149603>\
**Category:** Plugin builders\
**Created:** [May 4, 2021, 12:39pm UTC](https://forum.bubble.io/t/get-element-update-functions-properties-in-other-action-function/149603 "2021-05-04T12:39:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maestro](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@maestro](https://forum.bubble.io/u/maestro)\
**Post date:** [May 4, 2021, 12:39pm UTC](https://forum.bubble.io/t/get-element-update-functions-properties-in-other-action-function/149603/1 "2021-05-04T12:39:14Z")

</div>

Like for the update function, for every action function there’s a properties object available which contains the field data of that action’s fields.  
However, I need the same data as set in the update function’s fields in my action function and I don’t want to set all the fields again for this action.  
How can I get the properties object (fields) of the element’s update function in another action?

Thanks for any help in advance! 🙂

---

<div class="post-metadata">

**Author:** ![jared.gibb](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jared.gibb/32/123329_2.png) [@jared.gibb](https://forum.bubble.io/u/jared.gibb)\
**Post date:** [May 4, 2021, 2:12pm UTC](https://forum.bubble.io/t/get-element-update-functions-properties-in-other-action-function/149603/2 "2021-05-04T14:12:21Z")

</div>

You can use (as long as your action can’t run before the element is “visible” or live on the screen)

`instance.data.variableName = properties.inputFieldName`

Then you can pass data between all actions of the same element.

There’s another trick to pass data between elements. 😉 I had to do this with my calendar plugin to avoid a circular data issue I was experiencing. Also, it’s just kinda neat.

Element A  
`window[‘var_name’] = data`

ElementB  
`var data = window.var_name`

Going event further,

You can do stuff like

Element A  
`window[‘var_name’] = instance`

Element b

`window[‘var_name’].publishState(‘elementA_exposedStateName’, data)`

---

<div class="post-metadata">

**Author:** ![maestro](https://avatars.discourse-cdn.com/v4/letter/m/3bc359/32.png) [@maestro](https://forum.bubble.io/u/maestro)\
**Post date:** [May 5, 2021, 8:48am UTC](https://forum.bubble.io/t/get-element-update-functions-properties-in-other-action-function/149603/3 "2021-05-05T08:48:13Z")

</div>

Thank you very much @jared.gibb, this was exactly what I was looking for! 😃👍

> [@jared.gibb](#):
>
> instance.data.variableName = properties.inputFieldName
