# Send data and states between Reusable Elements

**URL:** <https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126>\
**Category:** Database\
**Created:** [May 26, 2021, 7:56pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126 "2021-05-26T19:56:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![extysolutions](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@extysolutions](https://forum.bubble.io/u/extysolutions)\
**Post date:** [May 26, 2021, 7:56pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/1 "2021-05-26T19:56:59Z")

</div>

How do I set a state of an element in the different reusable block?

Basically, I have **an index page with 2 reusable elements inside**.

This is what I want to do

> _WHEN - ReusableBlock1.Button1.Click_  
> _THEN - ReusableBlock2.StateX.set(ReusableBlock1.Field1.value)_

but also

> _WHEN - ReusableBlock1.Button1.Click_  
> _THEN - ScrollTo.ReusableBlock2.Header_

…if that makes sense to you.

So far I haven’t found an easy way to do it.  
Real example - When I click a button - It generates several objects. **I need to pass 2 of those objects** as a _state of a group_ in the other reusable element.

Please help I have no sleep because of this I also didnt eat anything for 4 days. Thank you

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [May 26, 2021, 8:45pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/2 "2021-05-26T20:45:20Z")

</div>

@extysolutions

Create a custom event with all the necessary workflow actions

Access this event using the action “trigger a custom event from a reusable element “

---

<div class="post-metadata">

**Author:** ![extysolutions](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@extysolutions](https://forum.bubble.io/u/extysolutions)\
**Post date:** [May 26, 2021, 9:20pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/3 "2021-05-26T21:20:59Z")

</div>

I dont see any in the list  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/9/a97cc1e5b8dd8d11faffe986206f69a827d1d7a9.png)

Ive created one Custom Event in the ReusableElement1, but when I am inside of ReusableElement2 - I don’t see it.  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/e/5ead337554e3831d0470fb3c761a3ff9b505589a.png)

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [May 26, 2021, 9:44pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/4 "2021-05-26T21:44:58Z")

</div>

@extysolutions

Place reusable 1 inside a popup that you never open (… in other words … “hidden”) in reusable 2.

---

<div class="post-metadata">

**Author:** ![extysolutions](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@extysolutions](https://forum.bubble.io/u/extysolutions)\
**Post date:** [May 26, 2021, 10:23pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/5 "2021-05-26T22:23:50Z")

</div>

That won’t work because the whole concept is to have 2 reusables side by side on index page.

I can access custom events from index. But I cannot access index custom events from reusables workflow.

I can’t stack them together - have to be side by side.

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [May 26, 2021, 11:09pm UTC](https://forum.bubble.io/t/send-data-and-states-between-reusable-elements/153126/6 "2021-05-26T23:09:55Z")

</div>

@extysolutions

Place them anywhere you feel appropriate.

In order to access a reusable’s custom event you need to place that reusable in a place where it can be … “detected”

Since you want to access a reusable inside a reusable … just place one inside the other in anyplace you deem appropriate
