When button clicked, show popup (from repeating group)

I have a page with a popup that resides in a repeating group and a button that is outside that group
How can I show that popup when clicking the button?

The only action I can think of is Show Element but I can only show the repeating group, not the popup inside it.

The rest of the page is empty.

Bubble has a weird limitation where they don’t let you do everything from inside/outside the repeating group.

You can put a custom state on the main page (yes/no) called “Show popup” or something. And have the button make it “yes”. Then have a conditional on the popup to show when the custom state is “yes”

I tried - please see the images - but there is no show element when the popup conditional is yes.



Is it possible to put the pop-up outside of the repeating group or is there a reason why it’s inside? There’s a way to do it I just need to test it out on my rest app…

No reason except that I am curious if there’s a way to do that :slight_smile:

:thinking: it’s do-able I can test it on my test app it just needs some work arounds. Worst case I know everyone uses the Orchestra plugin so you can do workflows between repeating groups and the main page. But I think it can be done without it

If you find a way, please post your solution.

You need to create an workflow to run when a specific condition is true.

In this case, create a workflow to run only when “Show Popup” is yes.

In this workflow, create a single action: “Show an element” (and choose your Popup). :+1:

But he’s saying his popup is inside the repeating group cell so the workflow editor can’t find the popup (i think?)

Ohhh that is true @tylerboodman !! I missed that part :joy:

So @lucian.t.pascu, I assume your popup is inside a reusable element that is inside a repeating group, am I right? Because you can’t insert a popup inside a repeating group directly :sweat_smile:…

Anyway, this doesn’t seems right. If you explain to us why you have this setup I am sure we can think in a better solution… Or help you better with this one :woozy_face:

You’re correct. I tried to edit the question but it’s not possible anymore.
The popup is inside a reusable group - not a repeating group as I initially said.

I don’t have a specific scenario of why I need this but I am curious if it could be done.

Oh this is different then. Put a custom state on the reusable element instead with the yes/no. Then have the button change it to yes/no. Then edit the reusable group and go into workflows and add “When condition is true” and make it “everytime” and make the condition "When [reusable elements name] [custom state’s name] is “yes”, with the action “Show [popup name]”

Yeah… this changes everything :sweat_smile:

That’s it :slight_smile: Thanks!

Yep no problem, custom states kind of “pass through” to the reusable element so that’s one of the few ways to actually pass data over to it