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)
I then put this icon/reusable element into a RG on one of my pages (see image below)
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.
Does it help if you make the data type of the reusable element the same data type of the cell?
I have made it the same type. What were you thinking it would then let me do?
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
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.
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
Yep that’s done it. Thanks @juicebox and @tylerboodman you were both onto it
This topic was automatically closed after 70 days. New replies are no longer allowed.