I have a Select All button for one Repeating Group. It works fine.
Now I have added a pagination, and I want to select only those items on the current page.
Literally all rows are selected with my Select All button, like shown below (it selected all items in Page 2 until the end)
I want to select only by Page. I tried using :items until # and :items from # but I can’t figure it out. Thank you for your help.
Are you using :items until # and :items from # simultaneously? If so, I’ve struggled with this before and it’s a bit counter intuitive. It’s been a while since I’ve done so I’m trying to remember back but I think it has to do with the top cell’s current cells index gets reset to 1 when you’re on page 2 or 3 or 4, etc.
You see I hardcoded item#1 until item#5. This is the intended selected fields…
like for other pages
page 1: items 1 to 5
page 2: items 6 to 10
page 3: items 11 to 15 and so on.
I tried selecting the top cell’s current cells index but I cannot target/select any object inside the RepeatingGroup, only the RG itself.
Just wanted to say this was super helpful and helped me solve this completely.
Here is a screenshot of the solution I used.
Note that I have a custom state already build that holds the starting item # and ending item # for pagination purposes, so that is what I used to create the select all function.