# When button clicked, show popup (from repeating group)

**URL:** <https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246>\
**Category:** Need help\
**Created:** [August 16, 2022, 4:59pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246 "2022-08-16T16:59:52Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 16, 2022, 4:59pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/1 "2022-08-16T16:59:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 16, 2022, 5:02pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/2 "2022-08-16T17:02:58Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 17, 2022, 5:47am UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/3 "2022-08-17T05:47:25Z")

</div>

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

 ![1](https://us1.discourse-cdn.com/bubble/original/3X/4/8/4821be5cad13cf909c618421f02f7b38c8ae3366.png)  
 ![2](https://us1.discourse-cdn.com/bubble/original/3X/4/2/42e2d80868ad74a7320dc5c307382f9130dba8c7.png)  
 ![3](https://us1.discourse-cdn.com/bubble/original/3X/6/e/6e6393bdea114a9f4676fb99c293cec493dc2d96.png)

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 17, 2022, 3:29pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/4 "2022-08-17T15:29:47Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 17, 2022, 3:47pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/5 "2022-08-17T15:47:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 17, 2022, 4:01pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/6 "2022-08-17T16:01:35Z")

</div>

🤔 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

---

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 17, 2022, 4:14pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/7 "2022-08-17T16:14:57Z")

</div>

If you find a way, please post your solution.

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [August 17, 2022, 4:17pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/8 "2022-08-17T16:17:46Z")

</div>

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). 👍

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 17, 2022, 4:30pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/9 "2022-08-17T16:30:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [August 17, 2022, 4:56pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/10 "2022-08-17T16:56:46Z")

</div>

Ohhh that is true @tylerboodman !! I missed that part 😂

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 😅…

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 🥴

---

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 17, 2022, 5:53pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/11 "2022-08-17T17:53:37Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 17, 2022, 6:17pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/12 "2022-08-17T18:17:47Z")

</div>

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]”

---

<div class="post-metadata">

**Author:** ![rpetribu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/rpetribu/32/90852_2.png) [@rpetribu](https://forum.bubble.io/u/rpetribu)\
**Post date:** [August 17, 2022, 6:21pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/13 "2022-08-17T18:21:59Z")

</div>

> [@tylerboodman](#):
>
> Oh this is different then.

Yeah… this changes everything 😅

---

<div class="post-metadata">

**Author:** ![lucian.t.pascu](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lucian.t.pascu/32/140271_2.png) [@lucian.t.pascu](https://forum.bubble.io/u/lucian.t.pascu)\
**Post date:** [August 17, 2022, 6:50pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/14 "2022-08-17T18:50:31Z")

</div>

That’s it 🙂 Thanks!

---

<div class="post-metadata">

**Author:** ![tylerboodman](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/tylerboodman/32/242142_2.png) [@tylerboodman](https://forum.bubble.io/u/tylerboodman)\
**Post date:** [August 17, 2022, 6:54pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/15 "2022-08-17T18:54:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [October 25, 2022, 5:00pm UTC](https://forum.bubble.io/t/when-button-clicked-show-popup-from-repeating-group/220246/16 "2022-10-25T17:00:38Z")

</div>

Closed on October 25, 2022, 5:00pm UTC

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