This is a really simple thing to ask but I wanted to know what you guys think the best way to add page numbers to a repeating group is.
I want it to be like ← 1 2 3 4 5 6 7 8 9 10 →
Thank you!
This is a really simple thing to ask but I wanted to know what you guys think the best way to add page numbers to a repeating group is.
I want it to be like ← 1 2 3 4 5 6 7 8 9 10 →
Thank you!
Check this tutorial it explains it clearly.
Though in my dashboards with multi-page RGs I prefer this UI pattern:
I think it’s the most versatile pagination, usability wise.
Thank you! Ill Try it out!
Hey, I checked the video and everything multiple times, things are working fine but the issue is whenever i click next on the arrow, for the first page it goes and highlights the number 2, but then when i click it again it stays on number 2 and does not make the arrow invisible but it still changes the page itself. When I go back (left arrow) it goes to the previous page but doesnt highlight any of the numbers and the left arrow stays visible.
Any idea why? Thank you!
well I can’t see your setup but from what you describe it seems to me like you are showing next/prev of a repeating group on arrow click, but the conditional you have on the arrows may not be correct.
As for highlighted number it looks that either the conditional is not correct or the workflow that sets the number to highlight is incorrect, check your debugger step-by-step as you load the next page for example and inspect the highlighted page number and arrow to see why they look that way after workflow finishes running.
Thank you, I’ll have a look and if i can’t figure it out i’ll provide some screenshots.
I fugured out the problem but not sure why its happening. When it goes to page 2, the set state adds 1 to the current number of the page. So it goes to 2 normally. But when i go back from 2 to 1, i have it set up to minus 1, but instead of doing 2-1=1, it becomes 0 leading to the issue. These are my workflows.
I have everything set up exactly like the video.
Nvm I realized my mistake, I was meant to call the custom state not the page number.
“RepeatingGroup numbers itemPage - 1” worked
cool glad it did! sorry I just saw this.