of course you can, you just need to keep track of what is selected in a variable. You can use an object or an array, and handle the value update with a workflow on click. this example shows how you can do it with an array, it uses checkboxes, but it’s the same logic, on click check if the value is present or not and remove/add the value from the variable. My preferred method is using an object in a way similar to this example, it uses forms and inputs but you can get how it works. You need an unique id for every button and on click you set yourvariable[id]
to not(yourvariable[id])
, now if yourvariable[id]
is true the button is selected.
The important thing is that your condition needs to be bound to something unique that identifies the button
1 Like