Hi! I’m trying to figure out how to ‘get’ the url of the page my form is on.
I’m deploying an embedded airtable form into hundreds of articles (We run a news site). I can not manually put the url in.
Most forms will tell you ‘where’ a user filled it out… is there an easy extension/way to get the url and submit it into a ‘single select’ or short text field?
Hmm, if you’ve got some web dev resources this could be relatively easy depending on how your site’s set up
You can prefill embedded forms, so you could potentially create a new field called “Source” or something, add it to your form and hide it, and then dynamically prefill it with the URL of the page it’s loading on?
What Adam is suggesting is much easier than creating a new HTML form that you would need to hook into the Airtable API. You also don’t want to be calling the Airtable API from a webpage as that would expose your API Key.
Instead, create a new field in your form to hold the name of the parent webpage. Then use query parameters for the url of the shared form to fill in that field and hide it. Each time you embed the form somewhere, change the query parameter to show where it is embedded. Thus you have only one form, but when people submit it, you see the webpage that you included in the query parameters.