Custom States of nestled Repeating Groups

Is there a way to set a state of one cell of the repeating group without setting the states of the whole group.

Currently when I set the state and apply colour changes (white to back) to the state, it changes the state of the cells in the entire repeating group.

You need to assign the state to the group that’s inside the repeating group and pass the index number so it knows which exact row to target

1 Like

I’ve set the state to the text in the repeating group
Do you mind explaining more on how to pass the index number?

One step further than using the index is to use the unique id of each item in the rg (assuming they are all “things”).

This helps with pagination since bubble treats each page as having the same indices. It also protects you against item deletion/reorganisation, as in those cases bubble would incorrectly move your active conditionals to another item.

Create a state on a parent element that holds ids of lines you wish to be affected. However, if you are actually changing the values of each thing in the db, you should be able to trigger conditionals from that alone.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.