# Need help with Option Set to DataBase

**URL:** <https://forum.bubble.io/t/need-help-with-option-set-to-database/328166>\
**Category:** Database\
**Created:** [June 25, 2024, 12:30am UTC](https://forum.bubble.io/t/need-help-with-option-set-to-database/328166 "2024-06-25T00:30:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowadict.music](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowadict.music/32/220716_2.png) [@flowadict.music](https://forum.bubble.io/u/flowadict.music)\
**Post date:** [June 25, 2024, 12:30am UTC](https://forum.bubble.io/t/need-help-with-option-set-to-database/328166/1 "2024-06-25T00:30:12Z")

</div>

I have created an Option Set list and a repeating group. which displays the list of the option list. Now I got stuck because I want the option that is selected saved in the database (App Data) but I don’t get the right flow. I also made the checkboxes custom to the check and unchecked right. now I need to get the checked item into the database.

 ![Schermafbeelding 2024-06-25 022905](https://us1.discourse-cdn.com/bubble/original/3X/0/b/0b9712660bcb644f75891e03d3db6a2e59a2d01a.png)  
 ![Schermafbeelding 2024-06-25 022948](https://us1.discourse-cdn.com/bubble/original/3X/e/9/e93c95c04f0439f37d432db982813076f3b7b99f.png)

---

<div class="post-metadata">

**Author:** ![yamada.shoji99](https://avatars.discourse-cdn.com/v4/letter/y/76d3ee/32.png) [@yamada.shoji99](https://forum.bubble.io/u/yamada.shoji99)\
**Post date:** [June 25, 2024, 1:41am UTC](https://forum.bubble.io/t/need-help-with-option-set-to-database/328166/2 "2024-06-25T01:41:07Z")

</div>

First, create a list state of your option set

When your checkbox icon is clicked do this in your condition:

`option_set_list_state contains Parent group's option set`

Then create an action to set value in your state:

`option_set_list_state:minus item Parent group's option set`

Add another When icon checkbox is click, then add condition:

`option_set_list_state doesn't contains Parent group's option set`

Then create an action to set value in your state:

`option_set_list_state:plus item Parent group's option set`

Then you can now do whatever you want in your option\_set\_list\_state like saving it in database

---

<div class="post-metadata">

**Author:** ![flowadict.music](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/flowadict.music/32/220716_2.png) [@flowadict.music](https://forum.bubble.io/u/flowadict.music)\
**Post date:** [July 2, 2024, 3:03pm UTC](https://forum.bubble.io/t/need-help-with-option-set-to-database/328166/3 "2024-07-02T15:03:09Z")

</div>

What do you mean exactly with “create a list state of your option set”? I already have the Option List

 ![Schermafbeelding 2024-07-02 170053](https://us1.discourse-cdn.com/bubble/original/3X/0/c/0ca843bf107dea96ab224b39b2de8e8c9ea21ed9.png)

I’m new with bubble I dont know what you mean with creating a list state, i do know hoe to create a state in a element, groep or a reppeating group etc. can you explain? Or do you mean an attribute?
