Hi, does anyone have any ideas on how to make pressing the “Any” chip deselect the currently selected chips? And visa versa, if “Any” is currently selected, pressing another chip deselects “Any”.
I do not want “Select all” and “Select none” buttons.
Maybe this might work: Have a conditional on the workflow. If you are saving the list to the database or if you are setting a state, either one should work fine.
If current cell is Any, clear list and add Any to it.
If current cell is not Any, remove Any and add Current Cell.
If list of chips contains current cell, remove it from the list.
Does that help?
Does that make sense or do you need me to make an example for you?
Thanks. It actually doesn’t use a workflow for the chips, since this is a ready made component from the Canvas system. I’ve tried creating a workflow using similar logic to your suggestion, but so far no luck. I’ll keep trying!
So one of the ways to do what you want is (using a custom state):
When something in the cell is clicked and current cell’s option is “Any” → set custom state = empty
1.1 If you are using “Ignore empty constraints” in you main RG (which you are filtering with this Option Set RG) - empty custom state will be ignored and you’ll get all items from DB according to your main RG setup.
1.2 you can use empty custom state value as a condition to highlight ANY chip.
When something in the cell is clicked and current cell’s option is not “Any” → custom state: plus item XXX (XXX = current cell’s option)
If they don’t allow a workflow for it, then you probably should just build it out like I did using the native Bubble elements. It used to be that it was hard to create this sort of feature in Bubble, but now it’s really easy to do because of the new responsive engine. If you are on the new responsive engine, then this is easy to do. You can see from the example that I made. Otherwise, you will need to add some custom CSS on the page for it to be the same style. Or ask AirDev to add a workflow for you.