May 21, 2019 02:40 AM
Hey,
I have a form and I wish to auto-fill a field with content in another table.
It’s already linked to another table and I want to have a specific info auto-filled.
How it’s done right?
Thnaks
Dec 08, 2019 11:25 AM
May I ask how you got it to work? I’m now stuck on what I believe to be the same problem
Dec 08, 2019 11:36 AM
May I ask how you got it to work? I’m now stuck on what I believe to be the same problem
Dec 08, 2019 11:40 AM
I’ve succeeded in prefilling the “Name of broker” field with ‘Clark Kent’, but i’m also trying to prefill the ‘individual_being_reviewed’ field (a linked field) with a selection from that other table. I’m just trying to pre-fill (or pre-select to be more precise) with an option. Is that possible?
I’d like just it to be option 1.
Dec 08, 2019 01:16 PM
The “prefill_” prefix has to be on every field reference, not just the first one. It should look like this (after your base form URL):
…prefill_Name%20of%20broker=Clark%20Kent&prefill_individual_being_reviewed=1
Dec 08, 2019 06:41 PM
Thanks so much! Works like a charm
Mar 07, 2020 10:45 AM
Another related question, not sure if its worth another whole question or if posting here is correct.
Is there a way to prefill using another field’s data if that data has spaces in it? eg in the example below if {Names} was John Doe it only shows up as John, as the Doe is after a space. I’m aware I probably don’t need the concatenate but with & and + signs in formulas and URLs it was getting confusing.
CONCATENATE(“https://airtable.com/xxxxxxxxxxx?prefill_Property=",Property,"&","prefill_Names=”,{Names})
Thank you in advance
May 18, 2020 08:11 AM
Welcome to the community, @Joseph_Steenson1! :grinning_face_with_big_eyes:
Wrap the field name in the ENCODE_URL_COMPONENT()
function. It’s probably best to do that with all data pulled from other fields, in case there are other special characters that need to be escaped.
A couple other tips:
CONCATENATE("https://airtable.com/xxxxxxxxxxx?prefill_Property=", ENCODE_URL_COMPONENT(Property), "&prefill_Names=", ENCODE_URL_COMPONENT(Names))
Also, you can combine pieces using the &
operator, which is often more compact than using CONCATENATE()
.
"https://airtable.com/xxxxxxxxxxx?prefill_Property=" & ENCODE_URL_COMPONENT(Property) & "&prefill_Names=" & ENCODE_URL_COMPONENT(Names)