Webflow sync, pageviews & more.
NEW
Answers

Is it possible to redirect the client to another page instead of the webhook after submitting a form on my Webflow hosted site integrated with Integromat?

Yes, it is possible to redirect the client to another page after submitting a form on your Webflow hosted site integrated with Integromat.

By default, when a form is submitted on a Webflow site, it triggers a webhook and sends the form data to the specified endpoint (e.g., Integromat). However, you can customize the behavior by adding some custom code to your Webflow site.

To redirect the client to another page after form submission, you can use JavaScript code. Here's an example of how you can achieve this:

1. Open the Webflow Designer and select the form element.
2. In the form settings panel, navigate to the "Behavior" tab.
3. Scroll down to the "Custom attributes" section and click the "+" button to add a new custom attribute.
4. Set the custom attribute's name to "onsubmit" and its value to the following JavaScript code:

```javascript
event.preventDefault(); // Prevents the form from submitting by default
window.location.href = "https://www.example.com/redirect-page"; // Replace with your desired redirect URL
```

Make sure to replace `"https://www.example.com/redirect-page"` with the actual URL of the page you want to redirect the client to.

5. Save the changes and publish your site.

With this custom code, when the form is submitted, it will prevent the default form submission action and instead redirect the client to the specified URL.

Keep in mind that if you have also integrated the form with Integromat, the webhook will still be triggered and the form data will be sent to Integromat. The redirection will happen in addition to the webhook being executed.

Remember to test your form thoroughly to ensure that the redirection and webhook integration work as expected.

Rate this answer

Other Webflow Questions