# Dynamic checkboxes list in a form

**URL:** <https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053>\
**Category:** Ask for Help\
**Created:** [March 12, 2023, 3:45pm UTC](https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053 "2023-03-12T15:45:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan/32/15941_2.png) [@Ryan](https://community.glideapps.com/u/Ryan)\
**Post date:** [March 12, 2023, 3:45pm UTC](https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053/1 "2023-03-12T15:45:33Z")

</div>

Hi guys,  
I want to build a dynamic checkbox list and embed it in a form in the following way:

1. Table 1 consists of and contains a list of items, saying “customers”
2. Table 2 contains a list of categories, but this list may grow over time
3. Table 1 “new item” form will include a list of all current categories (taken from table 2) in a checkbox format, and the ticked categories will be linked (relation) to table 2

What’s the best Glidey way to do that?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [March 12, 2023, 4:42pm UTC](https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053/2 "2023-03-12T16:42:32Z")

</div>

The best way would be to use a choice component with a radio button style and allow to select multiple so there are check boxes instead big radio buttons. Trying to accomplish it with a list becomes to complicated.

---

<div class="post-metadata">

**Author:** ![Ryan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ryan/32/15941_2.png) [@Ryan](https://community.glideapps.com/u/Ryan)\
**Post date:** [March 12, 2023, 5:22pm UTC](https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053/3 "2023-03-12T17:22:14Z")

</div>

Thanks Jeff,  
Just to make sure I understand your point - do you suggest having all these options as part of table 1, as individual columns?  
If so, this might be a performance killer 🤐

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [March 12, 2023, 5:25pm UTC](https://community.glideapps.com/t/dynamic-checkboxes-list-in-a-form/59053/4 "2023-03-12T17:25:58Z")

</div>

No, he means use a choice component to display the list of items. When they get selected (checked off), they get written as a CSV of values in a singular field. From there, use a split text column to turn that CSV into an array column. Then you can use a relation column to relate that array column to your categories in table 2.
