In Webflow, capturing form submission details while using an external URL as the form action requires a bit of a workaround. By default, Webflow doesn't natively support posting form data to an external URL. However, you can achieve this using an intermediary service, such as Zapier or Integromat, which act as a bridge between Webflow and the external destination.
Here's a step-by-step guide on how to accomplish this:
1. Set up the form in Webflow: Start by designing and building your form within the Webflow Designer. Add the necessary form elements (text fields, checkboxes, etc.) and configure any validation requirements.
2. Add hidden fields for capturing submission details: To capture additional information along with the form submission, you can include hidden fields within your form. These can be used to store details like the page URL, timestamp, or any other information you want to track. You can create hidden fields using the Webflow Designer or add them manually within the HTML embed code.
3. Integrate with an external service: Use a service like Zapier or Integromat to capture and process the form data. These services provide seamless integration capabilities and can act as the intermediary between Webflow and the external URL. Set up a trigger in your chosen service to listen for new form submissions from Webflow.
4. Create a webhook or API endpoint: In your chosen service, set up a webhook or an API endpoint to receive and process the form submission data. This endpoint will be provided by the external service and acts as the destination for your form data.
5. Configure the form action and redirect: In the Webflow Designer, set the form action to post to a Webflow page (e.g., a hidden "thank you" page) or leave it blank for a default form submission. This allows your form to function normally within Webflow while directing the submission data to the intermediary service.
6. Configure the intermediary service: In Zapier or Integromat, connect Webflow as the trigger and configure the form data's mapping with the fields in the webhook or API endpoint. This ensures that the captured form submission details are sent to the external URL or service you want to use.
7. Customize the form redirect: Depending on your needs, you can customize the form submission redirect in Webflow. You can set it to redirect to a thank you page within Webflow or to an external URL provided by the intermediary service. This allows you to control the user experience after form submission.
By following these steps, you can capture form submission details in Webflow while still using an external URL as the form action. And the intermediary service, such as Zapier or Integromat, acts as a bridge, facilitating the transfer and processing of form data between Webflow and your desired destination.