Hello everyone! I am looking for a way to have a repeating group show one data entry (row) at a time. Ideally, the user could then control which item appears by clicking a right or left arrow below the group.
For example, if the users clicks the right arrow, the first data entry would be replaced by the second. Clicking the right arrow again would take you to the 3rd entry, and clicking the left arrow would take you back to the first.
This seems relatively simple but I can’t seem to crack it. Does anyone have any suggestions?
Hi j111,
for this you would use a state. This stores data.
On the workflow of the next button use element actions set state, select the next button, and create a new state, type number. This counts up by 1, whenever you click it. (Make sure to have the same state count back by 1 for the previous button)
Now also for the next button, only have it navigate to a new page (or show another button that is normally hidden) if this state is equal to the count of items in the repeating group used.