Forum Documentation Showcase Pricing Learn more

Showing current index of repeating group's list

TL:DR - I would like the text element within the cell increment each time I perform a “Show next” for a single cell repeating group.

I’m showing a repeating group with a single fixed cell at a time. I would like to be able to reference the index/position of the item in the list that is currently being shown. I have the option to choose “Current cell’s number”, but that only orders the visible cells. Namely, switching to the next item in the list will still display “1” in the cell since only one cell is displayed at a time.

Thanks in advance.

One way you could do is store the current page number in a custom state of the repeating group, and increment it when the user clicks on next.

See https://bubble.io/reference#Elements.GeneralConcepts.States.CustomStates

1 Like

Thank you Emmanuel. That was a quick and clean solution to my problem. Consider this solved.