Need help with reusable element buttons

Ok so i have a reusable element that is just an icon that when pressed display a group focus with three buttons (see image below)
Screen Shot 2022-08-29 at 4.05.07 pm

I then put this icon/reusable element into a RG on one of my pages (see image below)
Screen Shot 2022-08-29 at 4.06.39 pm

The problem is, how on earth do i make it so that when one of these three buttons in the group focus is pressed that it displays a popup on the page that the reusable element is on?

I thought i can have the button press set the state of the reusable element then have a workflow on the main page that display the relevant element when the reusable elements set state is a certain way but The reusable element and a the page it exists on don’t talk to each other so i can’t do that.

I think i’ll just have to put the elements i want to display on the reusable element page.

But the problem with that is i need the element that pops up to know which cell in the repeating group it is coming from. :frowning:

Does it help if you make the data type of the reusable element the same data type of the cell?

1 Like

I have made it the same type. What were you thinking it would then let me do?
Screen Shot 2022-08-29 at 4.23.42 pm
Screen Shot 2022-08-29 at 4.23.24 pm

Like, how do i pass that data through

Does it help to use icon with group focus' habit?

I tried to do a ‘when condition is true’ workflow on the main page but it wont let me reference the icon/group. Maybe because it’s ultimately in a repeating group

Screen Shot 2022-08-29 at 4.53.27 pm

Yeah it won’t work because it’s in a repeating group. However if your popup is within the reusable then you can reference it within the reusables workflows.

1 Like

That is true and i started doing that but the problem is: the things i want to display in that element need to be based on the cell that was clicked

Can you just put the popup inside the reusable element?

Whatever your cell’s data type is, pass that through the the reusable element as the same type, then when you press the button show the popup, do the “Display data” action and pass the type through to the popup.

Then the popup is referencing the same “thing” as the cell if that’s how you have it structured

1 Like

Yep that’s done it. Thanks @juicebox and @tylerboodman you were both onto it

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.