# Next button showing next item in a repeating group

**URL:** <https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338>\
**Category:** Need help\
**Created:** [May 29, 2024, 12:10am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338 "2024-05-29T00:10:50Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylynn.rees](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kylynn.rees](https://forum.bubble.io/u/kylynn.rees)\
**Post date:** [May 29, 2024, 12:10am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/1 "2024-05-29T00:10:50Z")

</div>

Hello everyone I have a repeating group that is displaying questions from a database I have setup that then lists the corresponding question when selected. I am wanting my next button to proceed to the next question in the repeating group.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/1/a169309de262dce8da1304d5fcbc64a08884dccd.png)

For instance the next button is pressed and the next question is selected.

I am also needing help when my pop-up is first loaded to by default show the first question. Here when the page is fresh and the popup is initially opened it shows no data until a question is selected.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/6/f/6f4eb59251ddabb79de2a2f6133728376cb6e61d.png)

---

<div class="post-metadata">

**Author:** ![flusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flusk/32/216042_2.png) [@flusk](https://forum.bubble.io/u/flusk)\
**Post date:** [May 29, 2024, 12:35am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/2 "2024-05-29T00:35:30Z")

</div>

Hey @kylynn.rees 👋

You don’t need a repeating group for this. Just check this answer I have created for another post:

> [@Conditional Buttons](https://forum.bubble.io/t/conditional-buttons/324213/2):
>
> Hey @caseyomar99 wave You will only have one page for displaying a question and its options. In this page, you will keep the current question number in a custom state. Then, the next button will just select the next question on and on. See the demo below: [brave\_AVkvKqby8G] There is only 1 custom state to keep track of the current question in the page: And the displays are just getting this question from the DB and displaying their options and text: And fina…

> ![bdk_512x512](https://api.flusk.eu/api:-2sATD7a/forum-logo?user=huseyin) @Huseyin from Flusk | [Discover the #1 Security and Monitoring Tool for Bubble](https://www.flusk.eu/?source=forum_flusk_signature)

---

<div class="post-metadata">

**Author:** ![kylynn.rees](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kylynn.rees](https://forum.bubble.io/u/kylynn.rees)\
**Post date:** [May 29, 2024, 12:44am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/3 "2024-05-29T00:44:12Z")

</div>

Hello Flusk here is what some of my workflows look like maybe I have something setup differently.

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/1/518bac69fa745d9d69c7c86a4352a75c5c71bc48.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/5/7/577031b08ac82426a737726c80226b5e87732c1d.png)  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/a/7/a751431d041428e506926070ba64f871ee3c3af0.png)

---

<div class="post-metadata">

**Author:** ![flusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flusk/32/216042_2.png) [@flusk](https://forum.bubble.io/u/flusk)\
**Post date:** [May 29, 2024, 12:52am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/4 "2024-05-29T00:52:23Z")

</div>

It looks ok as far as I see. Maybe show us what is the data source of the parent group of that text element in the image in the middle?

> ![bdk_512x512](https://api.flusk.eu/api:-2sATD7a/forum-logo?user=huseyin) @Huseyin from Flusk | [Discover the #1 Security and Monitoring Tool for Bubble](https://www.flusk.eu/?source=forum_flusk_signature)

---

<div class="post-metadata">

**Author:** ![kylynn.rees](https://avatars.discourse-cdn.com/v4/letter/k/ecae2f/32.png) [@kylynn.rees](https://forum.bubble.io/u/kylynn.rees)\
**Post date:** [May 29, 2024, 12:53am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/5 "2024-05-29T00:53:47Z")

</div>

Here is the parent group

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/9/1/919d6eed5bf3406a3918f4b4c2d8f5d68220c8fa.png)

---

<div class="post-metadata">

**Author:** ![flusk](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flusk/32/216042_2.png) [@flusk](https://forum.bubble.io/u/flusk)\
**Post date:** [May 29, 2024, 12:59am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/6 "2024-05-29T00:59:00Z")

</div>

This also looks fine.

If the next button is inside the repeating group, the next button will set the custom state to the `Search for 1 Basic Questionnaire's item # ( Current Cell's Index + 1)` and it would work. If the button is outside repeating group, it won’t work with this custom state structure, it needs an index as a number custom state.

> ![bdk_512x512](https://api.flusk.eu/api:-2sATD7a/forum-logo?user=huseyin) @Huseyin from Flusk | [Discover the #1 Security and Monitoring Tool for Bubble](https://www.flusk.eu/?source=forum_flusk_signature)

---

<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:** [August 7, 2024, 12:11am UTC](https://forum.bubble.io/t/next-button-showing-next-item-in-a-repeating-group/324338/7 "2024-08-07T00:11:28Z")

</div>

Closed on August 7, 2024, 12:11am UTC

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