Hey, welcome to the forum!
I’d approach it as follows:
- Have an option set for your options. For example, ‘Gender’ with options for Woman, Man, and Non-Binary.
- Display these in a Repeating Group of Genders.
- Inside each RG cell, create a group that is rounded and has a text inside it (this is your chip).
- Use a state or hidden group variable that is of type Gender. When a chip is clicked, run a workflow that sets the state to Current cell’s Gender / Parent group’s Gender, only when Current Cell’s Gender is not state’s Gender (the currently selected gender).
- Have another workflow that resets the state when the Current Cell’s Gender is the state’s gender (it’s already selected).
- Use conditional formatting (e.g when Current cell’s gender is state’s selected gender) to handle the colour changes in the text and border
You may need a custom event that returns yes/no for ‘is the current cell already selected’ and use that for working out whether to set a state or reset it - try it out and use the debugger if you have issues.