Hello,
I built an interface which allow users to add records in a list table, when they click Add record.
I would like to have the new records opened directly in their expanded layout, instead of creating a new line and then clicking the line.
Is this possible ? (Via the Add record of the current page, and even via buttons in other pages)
I can try scripts but I've never done that before so any help is welcome !
Many thanks for your help
Page 1 / 1
Hmm, perhaps you could try creating a form for them to add the record, and then redirect them to the expanded layout with that record selected?
https://support.airtable.com/docs/applications-of-record-functions#enabling-form-redirects-with-recordid
Yes, you can do this by using the keyboard shortcut Shift-Command-Return on Mac (or Shift-Control-Return on Windows).
Hope this helps!
— ScottWorld, Expert Airtable Consultant
Thanks for your answers ! A form isn't working as I need to display some lookup field.
And the keyboard shortcut is good but the users of my interface won't remember it, I would like the display to be automated.
I tried this script :
function expandRecord(record) {
console.log('Expanded Record:', record);
}
function onAddService(newRecord) {
expandRecord(newRecord);
}
But it is not working .. (it's my first script)
Thanks in advance for any help !
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.