Skip to main content

Add new linked record when entering data in a form

  • December 8, 2016
  • 139 replies
  • 610 views

Show first post

139 replies

Forum|alt.badge.img
  • Inspiring
  • February 8, 2022

Obviously @Airtable isn’t looking at this thread since it’s over 5 years old with no further updates from them, but just thought I’d add support for this feature. Would make it so much easier to use for collaborative projects if this feature existed.


  • New Participant
  • March 9, 2022

Yup, I DEFO need this too!


I suppose I’ll add my voice to this, but I am not hopeful, seeing as how this thread is more than 5 years old and nothing has been done.


Forum|alt.badge.img+10
  • Participating Frequently
  • April 7, 2022

Me too. Much needed.


Forum|alt.badge.img+18

Thought I would share my workaround for adding records to a (simple) related child table when submitting the form of the parent record. It’s not ideal, but it works.

In my example, I created a form so people could sign up to donate items for resettling refugees. But, we want to cross reference the item(s) donated by one person to the need(s) requested by another person so we can plan pickups and deliveries more efficiently. To skip the admin process of entering a row for each item on the side of the donation as well as the side of the needs request so they can be matched, I added a multi-select “Items” field to each “header” table and form, which requires the user to select the items they need or are donating and that gets saved to the header record. My automation script is triggered on insert of the header record, takes the selected “items” from the multi-select field, loops through them and creates a row in our “Item Donations Detail” table and relates it to the parent “Item Donation” or “Item Needs” header record. I had to create a separate automation script for each header table insert event. Attaching a screenshot of the Item Donation automation script.

Here is the text of the script if you want to copy/paste/refactor.

let inputConfig = input.config();
let table = base.getTable(“Item Donations Detail”);
let donation_id = inputConfig.donation_id;
let items = inputConfig.donation_items;
let linkField = “DonatedItem”;
let itemLinkField = “Item”;
let i=0;
if (items.length > 0) {
for (i=0;i<items.length;i++) {
await table.createRecordAsync({
[linkField]: [{“id”: donation_id}],
[itemLinkField]: [{“id”: items[i]}]
});
}
}


Can you share the template for your base? Much appreciated!


  • New Participant
  • July 12, 2022

Can Airtable please do something about this? this feature is very much needed


Forum|alt.badge.img+2

+1 need this feature


Forum|alt.badge.img+10
  • Participating Frequently
  • August 15, 2022

+1 should have been added years ago.


Forum|alt.badge.img+18
  • Inspiring
  • August 24, 2022

Much much needed improvement!


Forum|alt.badge.img+3

+1! Where is this feature?? almost 6 years and nothing :frowning:


Ramagu
Forum|alt.badge.img+5
  • Participating Frequently
  • November 1, 2022

+1. This would be a much needed option!


  • New Participant
  • November 10, 2022

+1
6 years old request


Hannah_Wiginton
Forum|alt.badge.img+19

+1
6 years old request


This is easily done with On2Air Forms. We have a free plan and plans for various budgets.

How to Create Subforms in On2Air Forms

You can sign up for access to the new version here


Forum|alt.badge.img+1
  • New Participant
  • November 22, 2022

Going to throw fillout.com into the mix here: Fillout lets you do this (for free!), with unlimited submissions.

There’s a quick help article here how you can do this. Should take less than 3 minutes to set up and connect your Airtable to give it a shot!