Hide/Show items in each RG cell independtly

Hi all,

I’m building out a menu, which is a RG that loads each users membership.

Screen Shot 2023-08-22 at 1.05.28 pm

Within my RG is 1x Group (Column), with has the following two Groups:

  1. (Green in img) The header Group, containing the membership title and an expand/collapse (> / V)
  2. (Blue in img) The menu items Group (as a column) containing all children menu items.

When a user selects expand/collapse, I want the Menu items group to show hide.

I have this working outside of a RG by attaching a custom state ‘collapsed’ to the main group.

However, within a RG I’m not quite sure how to do this for each record. I can only get all menu items groups to show/hide all together, rather than for each membership…

I almost need a way to say ‘if Parent Groups collapsed is yes’ this element is visble= no

How would you handle this?

Self-solved:

  • Added a custom state (type number, list) to the Repeating Group
  • Added workflows to add the current cell’s index to the custom state (if it isn’t in it already), and remove it if it is in it
  • Updated the Group containing menu items to hide if the custom state includes the current cell’s index