How to integrate your HTML Form to Airtable
Tags: tutorial, webdev, getform, airtable
Published: 2021-04-10 20:17:47

*This post is originally posted on [Getform Blog](https://blog.getform.io/how-to-integrate-your-html-form-to-airtable/).*


When your website visitors or customers fill out your contact form on the website, you will likely need to store and organize these form submissions properly to speed up your response process and analyze the form data in the best way. If you don't want to add your contact form data to your database or spreadsheet manually every single time, then you can integrate [Getform](https://docs.getform.io/?ref=blog-getform-airtable-article) with Airtable!

After having your HTML form and form backend ready with Getform, this integration will automatically create a new record in your Airtable database with all the data you are trying to organize from each new submission received on your contact form. So that your form data will be effortlessly ready to be processed with Airtable's capabilities!

Before we get into details of how to set up Getform-Airtable integration, let's give a brief introduction on the most flexible tool for organizing any kind of data and explain what is Airtable used for;

[Airtable](https://airtable.com/) is a user-friendly software platform that offers you the powerful features of a database and works like a spreadsheet. The hybrid structure of the Airtable app gives you the full flexibility that allows businesses to store and organize any set of data. You can use Airtable for project management, customer relationship management (CRM), tracking inventories, task management, and more.

### How to create new Airtable Records from Contact Form Submissions

Prerequisite: You need to have at least one form created and one form submission received to your form on Getform. If you haven't received your first submission yet, check out the ["Collecting form submissions"](https://getform.io/docs/collecting-submissions/collecting-form-submissions) section on our docs or watch our helper [video here](https://www.youtube.com/watch?v=bQ5QmaQT0Wk) to get started.

1.  Sign in to your Getform account here: [https://getform.io/login](https://app.getform.io/login)
2.  Click the "+" button to create a new form that we will integrate into your specific Airtable base and table. Let's name the form as "*Customer Support*".
3.  With that form created, your unique form endpoint is now ready to be inserted into your HTML form. Let's add our form and start getting our first submissions. Here is how your HTML form should look like at this point:

```html
<form action="https://getform.io/f/{your-unique-form-endpoint-goes-here}" method="POST" accept-charset="UTF-8">
    <input type="text" name="name" placeholder="Your Name*" required="required">
    <input type="email" name="email" placeholder="Your Email*" required="required">
    <input type="text" name="phone" placeholder="1-(555)-555-5555">
    <input type="url" name="url" placeholder="https://example.com">
    <input type="text" name="message" placeholder="Your Message*" required="required">
    <button type="submit">Submit</button>
</form>
```

and with a little bit of styling here is how your Contact Form looks like this:

![](https://lh3.googleusercontent.com/BsYesvzQERe9G4TD-Q5FOh7msj1LjlzYqbHl1UWVSp6JGy5Nxfp5lvhGQ76EJe7THyBSS80sAKwdjAthwr-E8DzooHzJE2zXSGG_WeWiM6BY93Jp8Doi1dEUT61vBFSd7CnIR8Ye)

4\. After we submit to the form, here is how the Getform form data looks like:

![](https://lh3.googleusercontent.com/0A5Lzyuz-BrREcWkU_lCA5vR6xUROoEKcuOty3Hsqfxxc4lJXg1pIqqb-7lCO8yti-MeZTEoIrnL7Dc4ks9q6oHSpmFJHVCHycF9h6H2CPOXQS2hNdx9nPzKSwiV1GQASTniReSr)

5\. It's time to go to Airtable and create a new base and table to bring your form submission data together in the right place. Let's give the name "*Customer Support*"  to our new Airtable base and "*Contact Form Data*" to the new table as we will be using Getform and Airtable to automate our contact form submissions collection.

(You can skip this step if you want to receive your form submissions to one of your created Airtable bases and tables.)

![](https://lh4.googleusercontent.com/96YWk8_Xw8yQTTHhqnmBvWyCE2Ps5Ak3__FrELiUsNFfgMLLAxyK0vlQOS3jjd4sxEfqBfTuDsWWV5uBcLkyr1Hv3Qr4jFf28DElGD5Ja2_owNPpo7FsNE5h19JQ9eq4fWxdLPvO)

6\. Now, let's create and customize new fields in our Contact Form Data table based on the fields in our contact form for sending the related form data to the related Airtable field.

![](https://lh4.googleusercontent.com/JEpuWPfj4tzT5UaAipVJvhc7b15Bzi6eg5oM42HXR-9LwLOyBY4jA5dDH0lTFJMezgBK91B7d6eRgPXL_aahIJb7xCjzsd5ocuIWIxssXhO_6Xrf9ufYmkFPncgY5kogGrDvzGsU)

Airtable offers various field types to customize your table according to your needs such as email, URL, checkbox, date, collaborator field types, and more. In addition to that, you can also use the Airtable linked records feature to link any of your fields to any other record that you have in different tables.

Now, our form backend is ready to integrate with our Airtable base and table by using Zapier!

7\. On your Getform dashboard, navigate to the "*Integrations*" tab and click "*Connect with Zapier*" to start setting up our Getform-Airtable Zap.

8\. Search for Airtable on the opening screen and go there. On the Airtable page, select *"New Submission"* on the *"Select a trigger"* field and pick *"Create Record"* on the *"Select an action"* field. Then you just need to click the *"Connect Getform + Airtable"* button to start setting up the integration. Click on the "*Go to Advanced Mode*" button on the next opening screen.

![](https://lh3.googleusercontent.com/-yBsV9NaZmc992MwpKdrz92u-CwprEcLNSx9hHJrynAJAwwq1zBrvSucdI-B66Y_leA7rQ00JD65dUVqNSkDP36DAGAGS1LWO6-Bg5ziY4iSSXzSzh79y6BPntUgAm15iGfDmsWS)

To connect your Getform account to your zap, just paste the API Key you copied from the *"Integrations" *tab and click the *"Yes, Continue" *button. Then we will select our form's name to connect with our Airtable base as follows:

![](https://lh3.googleusercontent.com/jUlBPNGNG4bm4QvcGkALqpkJ2jJ42HWCOSaoRkBHt6eQrbFKvZfboOB_dCSDlWfTU4EQM65Y2IUPhsntGybDxzRQCroLaV4kkxJIZMVKLD0YCcVem9fqhhu9cH9PBt2eQhyOiMwH)

9\. After you finish setting up the Trigger step, you just need to click the *"Continue" *button in the Action stage since Zapier already selected the action app and event for you. Then you need to connect your Airtable account with your zap by using the API Key.                                                                                                                                     To find your API key, navigate to your account page in Airtable and On your account page, there's a button that says "Generate API key" under the API heading.

10\. We are so close to finalizing our integration! Let's set up an action by selecting our specific Airtable base and table. Then you can add your form submission info to the related fields that you created in Airtable as follows:

![](https://lh4.googleusercontent.com/iAJ35Z6QbSB6qTkBtG_diLMCP-FLgxt2H2__MhpSRwpqFUhNh7i9giYvyClR5ry6WbeVmCzXtEFabg9EYtECEq9783kHD7kq8tHy_tzUFWczTNvojp7gAVoM2BMGUt-isAqmb0De)

11\. Now our Zap is ready to test. Let's click on the *"Test&Continue"  *button and check our "*Contact Form Data*" table on our "*Customer Support*" Airtable base.

![](https://lh5.googleusercontent.com/bk8YcH4QSiPh_IlcS7uo-jDlOVnm0c6_mxKTSdMUN70Ux-cKhEDQHfhHoJxBaV5zpQg6kBYpNzbYiXBbHFw5ILclFfd6b3aob40SiLI3cAiz8Ztiv_P-slIDWR4YMbore7yDaWbd)

That's it!\
Your HTML form has been connected and sent to your Airtable base and table successfully. From now on, your form data can be automatically sent to Airtable whenever your form is submitted.

* * * * *
Thank you for reading! You can find more information and code samples for different use cases from the resources provided below.

-   [Codepen examples](https://codepen.io/getform/?ref=dev.to-airtable)
-   [Codesandbox examples](https://codesandbox.io/u/omerozturkh/sandboxes/?ref=dev.to-airtable)
-   [Getform's Zapier page](https://zapier.com/app-directory/getform/integrations/?ref=dev.to-airtable)
-   [Getform Documentation](https://docs.getform.io/?ref=dev.to-airtable).