Make Group Visible inside of Repeating Group

Hi Bubblers,

I have a side bar menu with some buttons and when I click Group 1 button I would like to be able to make Group 1 inside of the repeating group become visible.

Would anyone know how to do this?
Also would it be possible to do this through a workflow on Group 1 Button?

Thank you!

Create a state called “group_selected” and when a user clicks one of the groups, modify that state to be “1” or “2”. Now, when that state is 1 or 2, hide or show the elements.

Thank you very, very much!