Data from an RG inside an to an RG inside a pop up

Hi ! so this is a review (RG) and users can open the images from an RG inside the RG. how can I have the data from this latter RG to another RG which would be inside a pop up ? thank you

1 Like

Hey!

To pass data from one Repeating Group (RG) to another, especially when the second RG is inside a popup, you can do the following:

  1. Set a custom state:

    • When the user clicks on an image inside the first RG, create a custom state on the page (or the popup itself). You can store the data you want to pass in this custom state.
    • Example: Create a custom state on the popup, like “Current Image”, and set it to the image the user clicked on.
  2. Display data in the second RG (inside the popup):

    • In your popup’s second RG, set the data source to be the custom state you set in step 1.
    • Example: Popup’s Current Image’s data as the data source for the second RG.
  3. Show it all:

    • When the popup opens, it will display the images or data from the first RG based on the custom state, and you’ll have a seamless transition between both RGs.

This way, you can pass the data without any issue and make sure everything stays smooth for the user!

Good luck, and have fun building your app! :blush:

1 Like

can’t believe it was that easy ! a million thanks to you !!!

1 Like