Saving form data with multiple selected groups

Hi Bubble Community!

I’m creating a form where I would like a user to select multiple choices. I don’t like the drop down look, so I have created 5 option “boxes” (each is a group with text attached; the last “somewhere else” field opens an input). See attached screenshot. Once the group is clicked, the state is changed to show that the group has been selected.
Screen Shot 2020-02-27 at 4.39.14 PM

I’m struggling to save this data to the user’s dataset. What would be the best way to save data of which choices the user selected?

If I’m building this all wrong and there’s an easier way to create this type of form/question, please let me know.

Thank you!

For this particular implementation (having this saved as Texts), this could work:

  • Set a State of the type List of Text
  • Whenever the User clicks on a Text - add that text into your State
  • If User clicks on the text that is already in his current list - remove the state from a list
  • By the end of the exercise- you will have the list with the texts that the user creates
  • You can then either save them to a User object, or to another place in your DB

Same principle would work for a list of any other Objects.

Hope this helps!

Thank you @vladlarin. The part I’m struggling with is how to add/remove text from a state with a list of text. Is there a workflow I can use or do I need a plugin?

I created a state (list of text) for the parent group. In my workflow I have Set State of the parent group with Value of Parent Group’s, Custom State (list of text), and then want to add to the list, but I don’t see the “:plus” option.

Never mind! I got it figured out :slight_smile: Thanks for your help!

1 Like

Rock on :metal:

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