Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

How to Redirect Users After Form Submission in WordPress

A cool trick we use on WPBeginner and other brands is redirecting users after they submit a form on one of our websites. This can be a useful page showing our most popular articles or encourage users to take another action, like joining our Facebook group.

You can do the same on your website. When a visitor submits a form, you can lead them to your top-performing blog posts, display the latest deals, or show a thank you page to build a relationship with your audience.

In this article, we will show you how to redirect users after form submission in WordPress.

How to redirect users after form submission in WordPress

Why Redirect Users After Form Submission?

When a user submits a form on your WordPress site, many business owners might think that’s the end of the process. However, you can use forms to increase user engagement on your website and get even more conversions.

For instance, you can direct users to a thank you page after form submission and list your high-converting articles. This way, you can get more pageviews to your best content and drive more sales.

On an online store, you can upsell products and offer incentives like discounts and free shipping when a visitor submits a form.

You could even redirect users to a page where they can download a free resource after submitting the form. For example, you can create a lead magnet where people can fill out a form in exchange for a free resource like an eBook, podcast, media file, or PDF.

That said, let’s see 4 different ways you can easily redirect users after form submission in WordPress. Simply click the links below to jump ahead to your preferred section:

Video Tutorial

Subscribe to WPBeginner

If you’d prefer written instructions, just keep reading.

Redirect Users After Form Submission in WordPress

The easiest way of redirecting users after they’ve filled out a form is by using WPForms. It’s the best contact form plugin for WordPress, and over 6 million professionals use it to create different types of forms for their websites.

WPForms comes with a built-in setting that lets you choose whether to show a thank you message, a specific page, or redirect users to another URL. Plus, you get a drag-and-drop form builder to easily customize your form.

For this tutorial, we’ll use the WPForms Lite version because it is free to use, and you can redirect users after form submission in just a few clicks. There is also a WPForms Pro version, which offers 1,800+ pre-built form templates, customization options, and powerful addons.

For more information, see our complete WPForms review.

First, you’ll need to install and activate the WPForms plugin. For more details, please see our guide on how to install a WordPress plugin.

Upon activation, you will see the WPForms welcome page in your WordPress dashboard. Go ahead and click the ‘Create Your First Form’ button.

Create your first form

After that, WPForms will have you choose from multiple free form templates. You can select any template and quickly customize it according to your needs.

Let’s start by entering a name for our form at the top and then selecting the ‘Simple Contact Form’ template.

Select simple form template

After selecting a template, the WPForms form builder will launch.

Here, you can customize your form and add new fields from the menu on your left. Simply drag and drop the fields you’d like to add. You can then rearrange their order to your liking.

Add new form fields to your template

If you want to add fancy fields like a website URL, phone number, address, file upload option, and more, then we recommend upgrading to the WPForms Pro license.

You can also further customize existing fields on the template. For more details, please see our guide on how to create a contact form in WordPress.

Set Up the Redirect URL after Form Submission

Once you’ve customized your contact form, simply go to Settings » Confirmations in the form builder.

Under the Confirmation Type setting, click the dropdown menu and select the ‘Go to URL (Redirect)’ option.

Select go to URL option

After that, simply enter a link in the ‘Confirmation Redirect URL’ field and specify where you’d like to redirect users after they’ve submitted a form.

How to Embed Your Form in WordPress

Once you’ve added a redirect URL, the next step is to embed the form on your website.

Go ahead and click the ‘Save’ button at the top to store your form settings, and then click the ‘Embed’ button beside it.

Embed your form

WPForms will now ask if you’d like to embed the form on an existing page or on a new page.

We’ll choose the ‘Create New Page’ option for this tutorial.

Embed a form in page

Next, you’ll need to enter a name for your new page.

After entering the name, simply click the ‘Let’s Go’ button.

Enter name for your new page

The plugin will now automatically add your form to the WordPress content editor inside the WPForms block.

When you’re ready, simply click the ‘Publish’ button at the top.

Preview and publish your form

Redirect Users Based on Their Responses After Form Submission

WPForms also lets you set up conditional logic, which automatically redirects users to different pages based on their responses when submitting a form.

For example, let’s say you have different teams that handle questions sent by users, like billing, technical support, and general inquiries. Based on the choice a user selects in the form, you can redirect them to a specific URL that relates to their needs.

Note that you’ll need a WPForms Pro license to use the conditional logic feature. You also get more form fields to add to the template, and you can use addons like User Journey to see how people interact with your forms.

First, you can add a multiple-choice, checkbox, or any other field that allows users to select different options. We’ll add a ‘Multiple Choice’ field in our tutorial.

Add a multiple choice field

Next, you can edit the options in the ‘Multiple Choice’ form field by simply clicking on the fields in the template to the right.

For instance, you can see in the image below that we renamed the options to different departments that would handle specific questions.

Rename multiple choice options

After that, you can head to Settings » Confirmations in the form builder.

Now click the ‘Add New Confirmation’ button to set up conditional logic.

Add a new notification

Next, you will have to enter a name for your new redirect. Be specific so you are able to track it easily.

Simply click the ‘OK’ button when you’re done.

Enter a name for new notification

For this tutorial, we want to direct users to specific pages based on the department they select in the form.

First, you can select ‘Go to URL (Redirect)’ from the Confirmation Type dropdown menu and then enter a link to the respective page in the ‘Confirmation Redirect URL’ field.

Set up conditional login for new notification

Next, you will need to click the ‘Enable Conditional Logic’ toggle. Once you do that, more options will appear.

Go ahead and select ‘Use’ this confirmation if ‘Multiple Choice’ is ‘Billing’ in the conditional logic settings. This will redirect users to a URL that holds more information about billing when they submit a form.

That’s all! Simply save the form, and the WPForms block you added earlier will automatically redirect users to the different URL you set based on their responses.

Next, you can just repeat this step for other multiple-choice options in the form and create new confirmation notifications with conditional logic.

Redirect Users After Comment Submission in WordPress

Did you know that you can redirect users to different pages if you have first-time commenters on your WordPress site?

For example, you can show a simple thank you page with an email signup form and get users to subscribe to your newsletter after commenting. Similarly, you can redirect people to a page with your social media links and increase followers.

Redirecting users after comment submission can also help boost pageviews and conversions. You can redirect commenters to your top blog posts, show a special offer or coupon page, or display a lead magnet page to get more conversions.

The easiest way of setting comment redirects is by using the Comment Hacks plugin. For more information, see our step-by-step guide on how to install a WordPress plugin.

It lets you choose which page to display after a first-time user leaves a comment.

All you have to do is navigate to Settings » Comments Hacks in your WordPress admin dashboard. Then, just select the specific page you want to send them with the ‘Redirect to’ dropdown.

Be sure to save the page to store your settings when you’re finished.

Set up comments redirect

For more details, please see our guide on how to redirect your user’s attention with a comment redirect.

Redirect Users After Registration Form Submission

If you allow user registration on your website, then redirecting people can come in handy.

For instance, if you run a membership website or sell online courses, you can redirect users to their account area or dashboard upon submitting a registration form. This way, users can access their download files, license keys, course materials, curriculums, and more.

A course curriculum created using the MemberPress LMS

With MemberPress, you can easily restrict access to different sections of your website. It’s the best membership plugin for WordPress and allows you to set up multiple membership levels.

Using MemberPress, you can also create a pricing page using one of the plugin’s built-in templates. If an unregistered user tries to access restricted content, then you can redirect them to a pricing page.

Once you’ve created a custom pricing page, simply enter the URL in the ‘Unauthorized Access’ section of MemeberPress to redirect unregistered users to your pricing page or registration page.

Enter pricing page URL for unauthorized access

If you want even more options, we recommend using a page builder like SeedProd. SeedProd is a drag-and-drop page builder that makes it super easy to customize the layout and design of any page.

You can add elements like a ‘Pricing Table’ to the page you redirect users to. For more details, please see our guide on how to add a beautiful pricing table in WordPress.

Add a SeedProd Pricing Table Block to Each Column

The default WordPress registration page is plain and only contains the WordPress logo and branding.

You can make it more engaging by using a SeedProd template and then adding a ‘Pricing Table’ block to create a custom login and registration page.

Editing your login page in SeedProd

If you need help, then please see our guide on how to create a custom user registration form in WordPress.

We hope this article helped you learn how to redirect users after form submission in WordPress. You may also want to see our guide on how to create a multilingual form in WordPress and the ultimate guide to using WordPress forms.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Disclosure: Our content is reader-supported. This means if you click on some of our links, then we may earn a commission. See how WPBeginner is funded, why it matters, and how you can support us. Here's our editorial process.

Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

The Ultimate WordPress Toolkit

Get FREE access to our toolkit - a collection of WordPress related products and resources that every professional should have!

Reader Interactions

1 CommentLeave a Reply

  1. Mrteesurez

    I admire to automatically redirect users to the different URL based on their responses this let one decide which contents or url is suitable for user or appreciate that he can read more or order the products.
    I am looking forward to aquired WPForms pro, thanks.

Leave A Reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.