So I have a repeating group with text that I would like to be clickable. Once you click, I would like to show and hide another repeating group, which shows the sub-categories from the first RG. When trying to set up the workflow, I can’t seem to indicate the specific text for each cell of the 1st RG to hide or show other RGs. Any suggestions?
Are you trying to hide a different repeating group or a specific element inside the cell of the different repeating group?
I’m not sure if I understand your problem since setting up a workflow when an element inside an RG is clicked is doable. However, referencing to an element inside a different RG is not possible natively - you would have to use other measures like the orchestra plugin.
If that’s not the case and you just want to hide a repeating group, you could simply use the action hide an element or show an element You could also use animate an element to show/hide something
I was thinking that the text element in the red RG should set a state (but I’m not sure how to reference the exact text for each text element in different cells) and then show or hide other RGs depending on the state. Not sure if this is the best way to go about it.
There are a couple of ways to implement this. You could use states, url params/paths, workflow actions, etc
since you’re using states right now, maybe you could go for the states route.
You could make a text state named nav and have a workflow where if current cell’s nav is clicked, set the state to current cell’s nav main’s display.
As for the corresponding repeating groups, you could set it to be not visible on page load and have a condition on it where it is only visible if the state’s value is x
You need to create a custom state. On the click of text start a workflow to set the custom state value and set the condition on the repeating group which you want to show when the value of the custom state is for eg: 1 or anything else. Then that repeating group will be visible.