# Create a list on State

**URL:** <https://forum.bubble.io/t/create-a-list-on-state/151907>\
**Category:** Need help\
**Created:** [May 18, 2021, 11:56pm UTC](https://forum.bubble.io/t/create-a-list-on-state/151907 "2021-05-18T23:56:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian2](https://avatars.discourse-cdn.com/v4/letter/b/9e8a1a/32.png) [@brian2](https://forum.bubble.io/u/brian2)\
**Post date:** [May 18, 2021, 11:56pm UTC](https://forum.bubble.io/t/create-a-list-on-state/151907/1 "2021-05-18T23:56:08Z")

</div>

So Im looking for functionality similar to a checkbox. What I have is a serious of options that can be selected. Currently the options are presented within a repeating group and either a toggle or a check box would represent the option being selected. a submit button would create a list of the options based on the ones that have been selected and record them to a database list. This functionality will happen before a database record has been created so my thinking was that it would be a state. I’ve not been able to figure out how to add current cells to a state… I’ve only been able to set a state.

I hope Im explaining my situation correctly.

Looking forward to your feedback.

---

<div class="post-metadata">

**Author:** ![Jici](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/jici/32/30722_2.png) [@Jici](https://forum.bubble.io/u/Jici)\
**Post date:** [May 19, 2021, 12:34am UTC](https://forum.bubble.io/t/create-a-list-on-state/151907/2 "2021-05-19T00:34:58Z")

</div>

You need  
A) Set the state the same type of the RG type. Let say we set the state on the “page index”.  
B) Set the state to be a list  
C) In the Workflow, when input value has changed. Select Checkbox. You will need two WF

1. When checbox is checked: Set state. The setting will be Page index’s state:plus item Current cell data
2. When checkbix is uncheced. Set state = Page index’s state:minus item Current cell data

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [July 27, 2021, 11:56pm UTC](https://forum.bubble.io/t/create-a-list-on-state/151907/3 "2021-07-27T23:56:16Z")

</div>

Closed on July 27, 2021, 11:56pm UTC

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