Is it possible to select and send the slug of a page, collected in a hidden field of a Webflow form, to Airtable via logic?
Published on
September 22, 2023
Yes, it is possible to select and send the slug of a page, collected in a hidden field of a Webflow form, to Airtable via logic. Here's how you can achieve this:
- Create a hidden field in your Webflow form:
- In the Webflow Designer, go to the form element that you want to collect the slug from.
- Add a new field and set its type to "hidden".
- Give it a unique name, like "slug".
- Set its default value to the dynamic value of the slug you want to send.
- Set up the integration with Airtable:
- In the Webflow Designer, go to the form element settings and select the "Actions" tab.
- Add a new Action and select the "Integrations" category.
- Choose the Airtable integration and follow the prompts to connect your Airtable account.
- Map the fields on your Airtable table to the corresponding form fields in Webflow.
- For the "slug" field, choose the hidden field you created earlier.
- Add logic to send the slug field to Airtable:
- In your Airtable account, create a new column to hold the slug data.
- In the Webflow Designer, go to the "Logic" tab in the form settings.
- Add a new action and choose the "Set Value" action.
- Select the "slug" field as the value to set.
- Choose "Form Field" as the source for the value and select the hidden field you created.
- Save and publish your changes:
- Once you are done configuring the form and logic, save the changes in the Webflow Designer and publish the site.
Now, when someone submits the form on your Webflow site, the slug value will be collected in the hidden field and sent to Airtable along with the other form data.
This integration allows you to track form submissions and associate them with specific pages using the collected slug.