# Add a new record in a choice component

**URL:** https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739
**Category:** Ask for Help
**Created:** [November 13, 2023, 2:05pm UTC](https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739 "2023-11-13T14:05:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Rimatcom](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rimatcom/32/32285_2.png) [@Rimatcom](https://community.glideapps.com/u/Rimatcom)
#### Post date: [November 13, 2023, 2:05pm UTC](https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739/1 "2023-11-13T14:05:20Z")

</div>

Hi Fellow gliders.  
I have 2 tables: contacts and company, every contact has a company.  
Many times I realized that I have not add a company and I have to return to the company collection and add a new company then enter again to contacts and re create my new contact

is there a way to create a new record on the company table without leaving the add contact form? I have a choice component to select the company.

Adding a text component pointing to the relation field don’t add a new register to the company table

---

<div class="post-metadata">

### Author: ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)
#### Post date: [November 13, 2023, 2:46pm UTC](https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739/2 "2023-11-13T14:46:53Z")

</div>

Maybe this will work…have the first ‘Company’ in the Choice be “Add a New Company”.

Then have a “Create a New Company” button with Visibility set to "Choice is ‘Add a New Company’.

If the user selects ‘Add a New Company’ the button appears and you can use your standard add a new company action (also checking that they are not duplicating an existing company). This works as long as no company is actually named “Add a New Company” 🙂

In normal use the button is hidden and doesn’t clutter the view.

---

<div class="post-metadata">

### Author: ![Rimatcom](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rimatcom/32/32285_2.png) [@Rimatcom](https://community.glideapps.com/u/Rimatcom)
#### Post date: [November 13, 2023, 3:13pm UTC](https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739/3 "2023-11-13T15:13:22Z")

</div>

Thanks Matt.  
Could you explain me how this ‘add new company’ action should be?  
Think that Im on CONTACT form and I want to add a new COMPANY row

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [November 14, 2023, 12:27am UTC](https://community.glideapps.com/t/add-a-new-record-in-a-choice-component/67739/4 "2023-11-14T00:27:45Z")

</div>

You should be able to add a form button to create a new company, right inside the form to add contacts.
