tag section to prevent default submission and open the redirect URL in a new tab using window.open().
To have a form submit button open a redirect in a new tab in Webflow, you'll need to use a small custom script because Webflow's native form handling redirects in the same tab.
https://your-redirect-url.com
).Webflow forms submit via AJAX, and the redirect happens automatically. To override this behavior and open the redirect in a new tab, you'll need to:
Go to Page Settings for the page with the form.
Scroll to the Before tag custom code section.
Add this custom script:
— This will grab the form submit event, prevent Webflow's default redirect, and instead open the URL in a new tab.
(Note: Remove the HTML/script tags here for Webflow to accept it)
```
```
Replace https://your-redirect-url.com
with your actual destination.
Make sure form action remains set — usually this is auto-handled by Webflow, so do not manually alter the form action
unless you're using a custom endpoint.
Webflow forms redirect in the same tab by default, so to open a redirect in a new tab after submission, you must stop Webflow’s native form behavior using custom JavaScript and manually trigger the new tab with window.open()
.