Forum Academy Marketplace Showcase Pricing Features

How do I display the next item in a list?

I’ve made an example to make this easier to understand. In the red box, I have a repeating group of one list of texts, as you can see from the database here:

Every time I press the blue “Next item” button, I’d like to display the text of one item from that list. So in this case, the green box should say “one”, then after pressing the button, it will show “two”, then “three”, and then BACK to “one”.

I’ve begun by assigning a state to the green box, and for the text in the green box to show the text of the state. When the blue button is pressed, the state should change, which will update the text.

However, I don’t know how to get the state to change to the second or third item in the list, and then wrap around and start in the beginning. Any ideas?

Thank you!!

1 Like

What you could do is the following:

Create a repeating group with fixed cells:

Create two buttons (or one as you wish) which says (Next):

The wrap around needs to be clicked so that it started again from the beginning if come to end an.

1 Like

Thanks, @Sarah_Biberei! That’s a great command to learn about.

Unfortunately, I don’t think it will work in this scenario because the number of items in the list is variable and will change. In addition, I’m having a hard time figuring out how to display the text from the list in the green box.

From what I can tell, the solution to this problem lies somewhere here:

I can manually set the “item #” to be 1, 2, or 3, which works perfectly. However, I can’t figure out how to have it set to something like “first item + 1” or something like that, in order to move to the next item on the list. Any idea if that’s possible?

here is the example in action :

here is the example in edit mode:

Essentially you want to make the green group have a custom state say ‘number’ that is a number and by default is set to 1. Then the groups data source will be the repeatingGroups list of texts item #Groups’number’. Then have two workflows for the next button. One that changes the groups number to itself plus 1 and another that changes it back to one if itself plus 1 is greater than the repeating groups list of texts count.


Wow that’s perfect, exactly what I was looking for! It’s also more complex than I would have thought, so thank you so much for your time and knowledge in helping me figure that out

1 Like

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