SOLVED - Issue with "go to page of RG" for Masonry grid RG

Hi all,

I am currently having a strange issue with repeating groups.

I basically have a page where many images are displayed in a repeating group, using masonry grid style.

I allow users to display one image full screen by clicking on it. It opens a popup, with custom states based on the cell the user clicked. The user can then see the image full screen, its name + can lead actions (download it, save it etc). This works perfectly fine.

I am now trying to implement a possibility to navigate from one image to another in this popup, so users dont have to close and it re open it every time they want to see another image.

In a previous version of the app, I had been building such a feature, using a repeating group of 1 cell + buttons for navigation using “show previous” and “show next”. I also used the action “go to page of repeating group : current cell’s index” so when the user clicked on an image to make sure that the first displayed image was always the one chosen by the user.

→ This worked all fine. No issues.

I then tried to build this again, and now I see that the “go to page” action does not work. It allways brings me to the first item.

The only difference between my previous build and the new one is that the repeating group displaying all images is masonry grid styled.

Note that once the popup is open (on the wrong cell), navigation still works well, going previous and next without any issue.

Could the Masonry grid be the reason why I have this issue ? If yes, is there another way to display the desired cell of my RG ? Masonry grid is something that i can’t remove.

Thanks for your help,

Cyril.

SOLUTION -

For some reason, the worflow would work when ran in step by step debug mode.

I then figured out that if i removed a step in my worflows (setting a custom state of my popup that was no longer required due to the new RG implemented), then the RG would open on the correct page.