I have a repeating group of articles. When a user clicks on one of the cells, I want to style that cell differently than the rest. I’ve been able to set up conditions to style it on hover, and I’ve been able to use a custom state called “active” and toggle it when the cell is clicked. But I can’t figure out how to “untoggle” it when the user clicks another cell. It just stays active.
Hi there, @sean13… try “tying” the custom state to the current cell’s index, and then you can highlight a particular row only when the custom state is set to that row’s index (which should take care of the “untoggle” situation). Does that make sense and do you think it would work for you?
I could be way off here, but try putting the custom state on the repeating group itself instead of on what I assume is a group within the repeating group.
One more question - If I have a link to that article from other group on the page, how would I go about setting the card matching that article within the repeating group to active using this approach?