Getting Next/Previous buttons display data from a RG to a Group

I have a group that shows a single thing at a time, it shows the thing selected in an RG below, but i want to make it easy for the user to go to the next or previous thing by utilizing a Next/Previous button.

How do i get those buttons to “display data” using the Next/Previous thing of an RG list to a Group.

(Using an RG with 1 Row, with “Show Next/Previous” action is not applicable for my situation )

Have a custom state on the page, which is numeric.

Set the state to 1 on load. Buttons +1 and -1 the state.

The group takes the Repeating Groups Indexed item.

https://buildingonbubble.com/block/next-in-a-list-1519715944653x287644721744445440

3 Likes

Hello @NigelG,

Your solution example does what I’m looking for, but I’m not understanding the instuctions. The link to the sample’s editor page takes me to (my) Bubble home page showing my apps. Can you provide another link to the sample editor?

Thanks,
George

I have updated the link to the editor, it had become corrupted, apologies.

1 Like

Awesome! Thanks again!!

OK @NigelG. I understand the changing of the state values, but I don’t understand what is making the focus change to the next or previous record. Will you explain that in more detail?

Thanks,
George

The state holds the index# of the repeating group item.

The Preview Group is set to show the item in the RG that has that item #

image

And the text in the repeating group has a condition to highlight the row.

image

1 Like

OK. I get it now. Thanks for your help!

1 Like

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