I wanted to create the favorite in bubble.io. If I click on favorite button then it will turn green else RED

I wanted to create the favorite in bubble.io. If I click on favorite button then it will turn green else RED

You can make a field called Favourite type list of users if favourite contains current user then remove him else if favourite doesn't contain current user add to list you can do it also for element in design if contain or not Change the button

As @amer said you need to add two workflows with the said conditions. You need to add a field in the related datatype and set it as a list of users. When a user clicks on it you can add or remove the user from that field. Then you can change the button color depending if the user is in the field or not.

This topic was automatically closed after 70 days. New replies are no longer allowed.