Help display data in repeating group and manipulate data source using next and previous buttons

I have a list here of subtopics when i click i want tp display to the repeating group what subtopic i clicked.


Here is where i want to display it and in the bottom i have next and previous button, please help me I’m stuck thinking what’s the best way. Thank you

Create a custom state on the page that has a type equal to a sub topic. When the sub topic is selected then set the state to that subtopic. Then in the repeating group make the data source equal to the custom state’s value.

Thanks sir, how about when i click the next and previous buttons?

I can’t go to the next page using next button.

Are the subtopics option sets or data? Either way I would say you could add qan attribute that is a number called order. Give them a number starting from 1 and going up. Then when you hit next you can change the state to equal whatever option’s order is the current option’s order plus 1. Add a conditional so if that doesn’t exist then it starts over from 1.

The subtopics are data sir.

Can you give them an attribute that is a number and assign each one a different number starting from 1 and increasing?

The subtopics sir is not fixed in quantity , i can add many subtopics as I like.

It’s like, in a parent subtopic it has different child subtopic when i click next, it will go to another parent subtopic.

Oh and I see those child subtopics appear to be in a repeating group. So when you set the custom state of the subtopic also have a custom state called subtopic index and set that to the current cell’s index. then the next and previous buttons can set the new state of the subtiopic to equal the repeating group list of subtopics item number (custom state + 1 or - 1)

Hello sir, I’ll create a custom state name subtopic index, what will be the state type of that custom state sir?

Web capture_4-8-2023_112514_bubble.io
This is when i click the repeating grouo subtopic.


Set custom state subtopic


Set state for subtopic_index


This is when i display the subtopics i clicked


What will i put on the next button sir?

In the data source for the repeating group, you can just put the custom state of the sub topic instead of doing a search But the type of content will need to be the child sub topic and the source will be custom state subtopic’s child sub topics.

On the next button you will put to change the custom state of repeating group subtopic to be repeating group topic’s list of topics:item number custom state index + 1

Is this correct sir in the next button?

This is my custom state

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