I regularly want to have forms with multiple checkboxes where users can optionally check as many items as they want, and I want to save all checked items in a database item as a list.
All the solutions to do this that I’ve seen on this forum are incredibly cumbersome!! Am I doing something wrong? It seems like it should be easy to save checkbox values in the database!
Generally with Bubble, what may seem hard or unfamiliar at first becomes easy and fast with time.
Yes! That’s what I’m hoping for. This is one thing that I’ve run into over and over though, and it never seems to get any easier so I must be doing something wrong.
Here’s some screenshots:
First: a whole bunch of checkboxes with different values for various roles. I want to save all of these into the role field as a list of texts. I want to be able to add/remove these from therole field using add and remove
When I try to add them, it just gets complicated. There’s only one that can be added at a time, or if I use add list then it’s adding/removing yes or no over and over and I would have to go in and modify each one. Also I have to pick each one manually instead of adding the whole group automatically.
To create a simplified case: Imagine a data type called “User” which has the field “favorite_colors”. I want them to be able to check ALL of their favorite colors:
What are your favorite colors? Check all that apply.
red
green
blue
orange
And whatever they check goes into the “favorite_colors” field which is a list of text: