Forum Academy Marketplace Showcase Pricing Features

How to unclick a button

I’m trying to make a multi select filter in my app using individual buttons. I can get single buttons to set the state and sort a repeating group but once a button is clicked, how do “unclick” that button?

I’ve read that I can set the state to a number and increment by 1 on each click but how do I make the sort conditional to only sort when the state is a divisible by 2?
This would help me fix my root problem.

You want to remove the selection from the custom state?

You can create two conditional workflows for the button.

Case 1: Button is clicked and custom state contains this selections - Remove the item from the custom state

Case 1: Button is clicked and custom state doesn’t contains this selections - Add the item to the custom state

Himanshu
Bubble tips