Hi, I’m in need of help… Relatively new to Bubble, I’m creating a pop-up with a repeating group (the “Allergens”). Now I want the second repeating group (highlighted in red) only to be visible when the value “Gluten” is checked.
The allergen data is app data and not an option set.
Create a state on your initial repeating group called “selected allergens”.
State: A list of “allergens”
Now create a trigger when a value has been changed for the checkboxes.
Inside that trigger, make it so it adds the item to the list if It’s not there, or removes the item from the list if it is there.
I haven’t been on Bubble in a little bit but there may be additional logic to make the lists work. If you’re not able to modify the list, you can ideally set list each time a value has changed with all the values of the selected options. I can try to make an example later for you if you cannot figure this part out.
You should now be able to refer to the allergen repeating group’s state with conditionals.
I was already able to create the state, since I’m needing it as well to store the data in a later stage.
My biggest question mark is how do I refer to the “gluten” in the conditionals to activate/make visible the second repeating group? Multiple checkboxes might be highlighted, but only when gluten specifically is highlighted, the second RG should be visible.
Depending on your setup, there may need to be some changes to make this work the way you want. But I will try and help you get somewhere close. I have a reusable element somewhere that allows you to do this, and you can refer to each item that is selected. I’ll find that if you cannot figure this out this weekend.