Button - record data to user and change state

  • When clicked and X is NOT in the user’s XYZ list → add X to the list, and the button turns red to show it’s selected

  • When clicked again and X IS in the user’s XYZ list → remove X from the list, and the button returns to its default grey state

AI Agent has been going around in circles, getting no-where except creating more issues. Any humans out there that can help? I’m a complete novice to bubble, so any advice would be much appreciated x

Hey! Can you describe in a bit more detail what issue you are facing, maybe some screenshots if possible.

Hi! The trick here is that the colour change and the data change are two separate things in Bubble once that clicks, the whole toggle makes sense.

Happy to walk you through it if you’re still stuck!

This is a very common beginner mistake, you need to do the conference directly in workflow and not in step, because otherwise both steps will be executed and whatever is configured first will persist. Look at the images for an example application


You can use this as a guide , in my own instance, several categories can be selected hence why it is a list (list is ticked on the state) and I am using a Repeating group + Option set to make things easier for easy computing

if its just one , the list will not be checked …
also where you have Set state value , yours will just be the name of the State(i set my states on the page level), there would not be a plus item … On the Ui , you will go to the condition and use your “custom state name” is Current cell display , then change the background color..

I hope this helps