Adding the snippet
Before we create the form, we’re going to begin by adding this snippet to our site.
If you’re not sure where or how to add snippets to your site, please check out this tutorial.
This snippet will only be applied to the form ID 909. You’ll need to update this part of the snippet to match your own form ID.
For any assistance needed in finding your form ID, please reivew this tutorial.
Creating the form
Next, you’ll need to create your form and add the fields you need.
Once you’ve set up the fields, click over to Settings » Confirmations and in the Confirmation Type dropdown, select Go to URL and enter the URL you want the user to be redirected to.
For more information on Confirmation Types, please review this tutorial.
Disabling AJAX form submissions
For redirecting into a new window, you’ll need to disable AJAX on the form. To do this, go to Settings » General and make sure the Enable AJAX form submission is disabled.
And that’s it! You’ve successfully added the snippet that will open a redirect in a new window. Would you like to change the title that appears inside the tab of the browser window? Take a look at the tutorial on How to Change the Page Title on the Browser Tab.
Action Reference: wpforms_wp_footer_end