# How do I use "allow to create option" on Multiselect dynamically

**URL:** <https://community.weweb.io/t/how-do-i-use-allow-to-create-option-on-multiselect-dynamically/4410>\
**Category:** How do I?\
**Tags:** binding, supabase\
**Created:** [September 18, 2023, 6:13am UTC](https://community.weweb.io/t/how-do-i-use-allow-to-create-option-on-multiselect-dynamically/4410 "2023-09-18T06:13:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Coder](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Coder](https://community.weweb.io/u/Coder)\
**Post date:** [September 18, 2023, 6:13am UTC](https://community.weweb.io/t/how-do-i-use-allow-to-create-option-on-multiselect-dynamically/4410/1 "2023-09-18T06:13:04Z")

</div>

Hello,

I’m in the middle of building a web to CRUD databases with using data-grid.

I was able to display, create, edit and delete thanks to all the amazing tutorials out there,  
but I ran into some roadblocks now.

First, let me explain about database structure I have.

I have Needs table and Need\_types table on Supabase.  
Needs table has a need\_type\_id as a foreign key.

When a user wants to create new need item with the form container below , they might want to create a new need\_type as well.

It seems like I would be able to achieve that by using “Allow to create option” from Multi-select but I’m not sure how I can bind things correctly.

now, I want to achieve the following:

1. Insert a new type on Need\_type table from Supabase when a user creates the one on the multi-select on the form container.

2. Create new need on Needs table from Supabase with using the newly created type’s id once it’s submitted.

Please let me know if you need more additional explanation to help.  
Thanks in advance for all your help!

Attaching a screenshot below:

 ![Screen Shot 2023-09-17 at 10.57.55 PM](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/3/363199374d503b6d6ac8f9950018e90d681bf933.png)

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [September 19, 2023, 11:07pm UTC](https://community.weweb.io/t/how-do-i-use-allow-to-create-option-on-multiselect-dynamically/4410/2 "2023-09-19T23:07:04Z")

</div>

Hi @Coder 👋

If there’s no sensitive data in your backend, would you mind recording a short video walking us through the use case and how things are currently setup in both WeWeb and Supabase?

It’ll help me reproduce your use case on my side and hopefully figure out a solution for you.

If that’s not possible, could you send me a link to your WeWeb project with credentials so that I can access the Supabase data in the collections as well if those are protected by authentication?

---

<div class="post-metadata">

**Author:** ![Coder](https://avatars.discourse-cdn.com/v4/letter/c/9de0a6/32.png) [@Coder](https://community.weweb.io/u/Coder)\
**Post date:** [September 22, 2023, 5:51am UTC](https://community.weweb.io/t/how-do-i-use-allow-to-create-option-on-multiselect-dynamically/4410/3 "2023-09-22T05:51:40Z")

</div>

hi @Joyce,

My team found another way to figure that out.

Thank you so much for the reply.
