Jan 13, 2021 02:48 PM
As per the title, has anyone connected a standard html form to Airtable?
I’m struggling to work it out and need a little help.
Jan 15, 2021 11:10 AM
Welcome back to the Airtable community!
I doubt that many people have connected a vanilla html form to Airtable. Instead, people
Trying to connect your own html form to Airtable without a 3rd party service would involve using the REST API, and a huge amount of back-end work that isn’t very cost effective compared to the alternatives.
Jan 15, 2021 11:11 AM
There are a few good examples on CodePen!
Jan 15, 2021 12:44 PM
One of the issues with the REST API is you need to include your Airtable API key with every request. The CodePen example requires including your API key in client-side code. However, you should never include your Airtable API key in client-side code because then anyone could copy your API key and have access to all of your bases.
It is possible to hide the API key on the server side, but then you need to have server-side code, which is more complicated to setup. It’s do-able, but so much more work than 3rd party form services that it’s rarely worth the effort.
Jan 15, 2021 01:04 PM
That’s the goal of the API gateway I mentioned in the other thread:
As an app developer, you could expose only the API tokens you’re willing to share, and you can do the back-end processing with a separate Javascript file that runs independently with no need for the client to access it.
Aug 08, 2024 03:56 AM - edited Aug 08, 2024 03:56 AM
Just in case anyone finds this thread in 2024+ (SERP still leads here), you can (now) achieve this through Airtable's Webhooks. Just set up a webhook automation that creates a record and have your form POST to it with the relevant data.