Jan 14, 2020 12:16 PM
Is it possible to automatically submit a form?
I’m creating a series of links that have the form input prefilled. Each can take me to the form with the info I want ready and waiting (which is terrific).
At that point I have to click Submit.
I’m using this for class attendance, so it’s a quick rundown of 25 entries at a time. It would be ideal to load the prefilled URL and have that submit automatically. Is that possible?
TIA,
Nathan
Jan 14, 2020 01:04 PM
What you’re describing is an automated integration. Why are you sending the data into a form if your real objective is to send the data into Airtable?
Jan 14, 2020 01:42 PM
Thanks for the quick reply, Bill. I’m not sure I understand your question.
I’m trying to get three pieces of data into Airtable:
Did that answer your question?
Jan 14, 2020 01:58 PM
No. :winking_face:
I get that - whose form? I guess I’m trying to understand why (if you have all the data in the prefill URL) you would need to post it to a form? Why not simply post it to the table and bypass the need for the form?
Perhaps a little diagram showing the process would be helpful. I don’t completely understand where the prefill data comes from and whose form you are calling into with such prefill data.
Jan 14, 2020 02:00 PM
Yep - I think it’s starting to make sense.
Instead of the links posting to a form, just use the Airtable API to post directly into the table that the form writes into.
Jan 14, 2020 02:13 PM
Ooookay - I think I get you now!
So, the API makes perfect sense. I didn’t even know you could do that. And I see why you’d suggest that as a more direct route - it’s just over my head. I don’t know JavaScript.
The form is mine - it’s just an Airtable form. (shared so I can enter the info as described by loading a URL).
I set all the prefill data up in a spreadsheet to create the links, concatenating the Airtable-required parts of the URL with my student records. It’s pretty easy to create the prefilled URLs.
If a diagram would still be helpful, I will give it a go. My art skills are slightly higher than my JavaScript skills.
Jan 14, 2020 02:18 PM
Yep - we get each other!
You are thinking web form and this is not unreasonable - it’s the quickest and easiest pathway. But, it comes at a price - you (a human) must act on the form. In contrast, the API is seamless; it quietly posts the data to the table when you click the link options.
There is a way to force a submit upon opening a web form (using JQuery inside the form itself). But unfortunately, I don’t think this is possible with Airtable’s web form because you do not have an ability to script inside their forms.
My recommendation - find a student who knows javascript and add the ability to script this into your web page. Surely there are students studying javascript near you.
Jan 14, 2020 02:22 PM
There might be a way to do this easier with Zapier webhooks (perhaps) - @Justin_Barrett - is there any way @Nathans can add a simple Zapier call inside a web app that takes some values and sends them on to Airtable?
Jan 14, 2020 02:28 PM
I see your point (and clearly with the diagram).
I will ask around about a JS-savvy student.
I can use Google Sheets (with IFTTT to send new entries to Airtable). It’s possible to automatically submit a Google form. It’s just even more indirect / more places for things to go wrong.
Jan 14, 2020 02:30 PM
Yes - the more gears in the machine, the more brittle and/or prone to maintenance it starts to become.