# List of checkboxes

**URL:** <https://forum.bubble.io/t/list-of-checkboxes/226010>\
**Category:** Need help\
**Created:** [September 27, 2022, 4:22pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010 "2022-09-27T16:22:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 4:22pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/1 "2022-09-27T16:22:34Z")

</div>

Is it possible to use a list of checkboxes instead of a dropdown of dynamic data?

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [September 27, 2022, 5:13pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/2 "2022-09-27T17:13:57Z")

</div>

What do you mean by a list of checkboxes?… literally just more than one checkbox?

In which case, yes, of course you can….

Or do you mean something else?

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 5:42pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/3 "2022-09-27T17:42:30Z")

</div>

List of checkboxes that refers to dynamic data.

For example: I have a list of items in my database, the checkboxes would show for each item.

Or do I have to add the checkboxes individually? I have over 3k records as checkboxes if that is the case

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 5:44pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/4 "2022-09-27T17:44:45Z")

</div>

Can’t you show the items from the database in a repeating group and add a checkbox to the repeating group?

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 5:51pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/5 "2022-09-27T17:51:15Z")

</div>

That certainly makes sense, ill give that a try

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 5:58pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/6 "2022-09-27T17:58:34Z")

</div>

How would a workflow be setup in this case?

I have the repeating group with the list of data and a checkbox next to each item. If a user were to check that box I have an action that would update the user and puts the list of items if that he/she checks into the database BUT the checkboxes do not show up for the workflow

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:15pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/7 "2022-09-27T18:15:31Z")

</div>

You could add the items to a custom state list as they are checked and then add the custom state’s value (i.e., the list of items) to the list in the database when some sort of submit action is taken.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:20pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/8 "2022-09-27T18:20:01Z")

</div>

there’s no workflow for the checkboxes though

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:27pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/9 "2022-09-27T18:27:13Z")

</div>

You can use the _An input’s value is changed_ workflow event, with the input element being the checkbox.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:27pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/10 "2022-09-27T18:27:47Z")

</div>

So I need the custom state to be a list but when doing the current cells checkbox it only refers to that current cell (1 item) so it doesn’t work.

How do I add them as a list per checkbox?

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:29pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/11 "2022-09-27T18:29:43Z")

</div>

When a checkbox is clicked, add the current cell’s thing to the current value of the custom state… so, something like `custom state's value:plus item current cell's thing`.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:32pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/12 "2022-09-27T18:32:34Z")

</div>

I am doing the action: “Set State” correct?

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:33pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/13 "2022-09-27T18:33:30Z")

</div>

Yes, within a _An input’s value is changed_ workflow event, you would use the _Set state_ action to add the current cell’s thing to the custom state’s existing value.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:34pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/14 "2022-09-27T18:34:03Z")

</div>

custom states value does not show up. I can get current cell’s “item” but no custom state value

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:35pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/15 "2022-09-27T18:35:13Z")

</div>

I assume you first selected the page/element with which the custom state is associated? You can’t select a custom state directly.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:36pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/16 "2022-09-27T18:36:05Z")

</div>

yes. I have in this case the state set to the page which I have selected within the workflow

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:39pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/17 "2022-09-27T18:39:39Z")

</div>

It’s very difficult to follow what you are doing without being able to see anything. If you want to share some screenshots, I’m sure someone will be able to help.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:40pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/18 "2022-09-27T18:40:12Z")

</div>

![Screen Shot 2022-09-27 at 2.39.57 PM](https://us1.discourse-cdn.com/bubble/original/3X/2/8/289322a0c1d974bcb14d420b6259b69ce0223417.png)

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [September 27, 2022, 6:46pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/19 "2022-09-27T18:46:45Z")

</div>

Try creating the expression `for_agents list of counties: plus item current cell's countie`. Also, you would want to add an only when condition to the workflow event (not the set state action) that says when the checkbox is checked.

---

<div class="post-metadata">

**Author:** ![JohnT](https://avatars.discourse-cdn.com/v4/letter/j/3be4f8/32.png) [@JohnT](https://forum.bubble.io/u/JohnT)\
**Post date:** [September 27, 2022, 6:50pm UTC](https://forum.bubble.io/t/list-of-checkboxes/226010/21 "2022-09-27T18:50:26Z")

</div>

![Screen Shot 2022-09-27 at 2.49.44 PM](https://us1.discourse-cdn.com/bubble/original/3X/3/1/311ddcbd771b4688a1ed2df6f9b50dc591e81bf7.png)

Seems to work that way

What if they uncheck it? would that still add the ID to the custom state then?

[Next page](https://forum.bubble.io/t/list-of-checkboxes/226010.md?page=2)
