WPForms Blog

WordPress Tutorials, Tips, and Resources to Help Grow Your Business

redirect users after a wordpress form submission

How to Redirect Users after a WordPress Form Submission

by Lindsay Liedke on Oct 23, 2018

Do you want to redirect users to another page after they successfully submit a contact form? Perhaps you want to send them to a thank you page or a custom landing page?

In this article, we’ll show you how to redirect users after a WordPress form submission.

WordPress Form Redirection After Submission

After a user submits a form, it can be disorienting for them if they just sit on the same page with no indication of whether their message was received or their form was processed. You can use this opportunity to connect further with your interested visitors and provide a better user experience.

Here are some of the most common places you can redirect site visitors to after a form submission:

  • Thank You Page: send users submitting your contact form to a customized thank you page.
  • Hidden Content: place your lead magnet on a custom thank you page and make it accessible only to subscribers.
  • Schedule Appointments: if a user submits a request for quote form, you can prompt them to visit your appointment scheduling system and book a time to meet with you.
  • Anywhere: with WPForms, you can redirect users after they submit a form to any page on your website or anywhere online.

Now let’s take a look at how to redirect users after they submit forms on your website.

Install and Activate WPForms

The first thing you’ll need to do is install and activate the WPForms plugin. For more details, see this step by step guide on how to install a plugin in WordPress.

Once you‘ve activated the plugin, you’ll need to create a new form. If you haven’t created a form yet, see our step by step guide on how to create a simple contact form.

Simple Contact Form

Keep in mind, you can create any kind of WordPress form using WPForms, especially if you use the Form Templates Pack addon, which comes with over 100 different form templates for you to choose from.

For instance, you can create a:

After you’ve created a custom form on your website, click Save.

Redirect Users after a WordPress Form Submission

After you’ve created your form, you’re ready to redirect users to another page once they submit the form.

You can redirect your site visitors to two places using WPForms:

  1. To another page on your website, such as a thank you page
  2. To an external webpage, such as another website

Let’s take a look at both options.

Option 1: Redirect Users to a Page on Your Website
The first option is to send users to a specific page within your website.

You can do this by going to Settings » Confirmation.

On the right preview panel, select Confirmation Type and then Show Page from the dropdown menu.

After this, click on the Confirmation Page dropdown and choose which page you want to send the user to that’s on your website.

show page confirmation

Note: Before you can successfully redirect users to another page on your website after they submit a form, you’ll have to have the page already created on your website so you can choose it from the dropdown menu in the Confirmation settings.

For help with creating effective thank you pages, check out this roundup of thank you page examples to help boost customer loyalty.

After you’ve chosen the page to redirect users to, click Save.

Option 2: Redirect Users to a Page on Another Website
If you want, you can redirect site visitors that submit forms on your website to an entirely different website besides your own.

To do this, go to Settings » Confirmation and select the Confirmation Type as Go to URL (Redirect).

Then, paste the complete website address you’d like to send the user to in the section labeled Confirmation Redirect URL.

wordpress form redirect after form submission

After you have configured where to redirect users after they submit a form on your site, click Save.

If you want, you can also set up more than one form redirect based on your site visitor’s behavior when they fill out your forms. For instance, you might redirect one site visitor to your FAQ page if they have a common question about your products or services.

On that same form, you might also want to redirect site visitors to your developer documentation if their question is more technical in nature.

For help with this, be sure to check out our easy to follow tutorial on creating multiple form confirmations in WPForms.

And be sure to check out how to use WPForms’ smart conditional logic to make this happen.

How to Publish a WordPress Form that Redirects Users

Once you’ve configured your form’s redirects, and set up form notifications to make sure everyone that needs to know a form has been submitted will be notified, it’s time to publish your form.

WPForms allows you to add your forms to many locations on your website, including your blog posts, pages, and even sidebar widgets.

Let’s take a look at the most common post/page embed option.

To start, create a new post or page in WordPress and then click on the Add Form button.

Next, select your order form in the modal popup and click Add Form.

Add Form Dropdown Menu

After that simply publish your page and view it.

Below is an example of our form:

published contact form

You can combine your forms with our email marketing addons like MailChimp, AWeber, GetResponse, Drip, Constant Contact, and Campaign Monitor.

This allows you to automatically add all potential customers to your email marketing list. You can even add them into various marketing automation sequences from there to improve your conversions.

And there you have it! You now know how to redirect users after a WordPress form submission.

In addition, you might want to check out our guide on how to create a file upload form in WordPress so you can collect all the information you need from site visitors at once, minimizing the back and forth conversations and providing a better experience.

So, what are you waiting for? Get started with the most powerful WordPress forms plugin today.

And don’t forget, if you like this article, then please follow us on Facebook and Twitter.

Comments

  1. Thanks for reading this article – I hope you found it helpful.

    I wanted to let you know about our new WordPress survey plugin that allows you to build interactive polls and surveys within minutes. You also get best-in-class reporting, so you can make data-driven decisions.

    You can get it 100% free when you purchase WPForms Pro plan.

    Get Started with WPForms Today and see why over 1 million websites choose WPForms as their preferred online form builder.

    Syed Balkhi
    CEO of WPForms

    1. Hi Hans,

      Sorry to hear you’re having issues with form submission!

      It sounds like you might be encountering a conflict with some other code on your site. If you could contact us in support, we’ll be happy to help you troubleshoot 🙂

  2. Hi,

    How do you pass the entry id or other info to the redirect URL? Is it possible? I need to pull information related to the transaction and display them inside the redirect page.

    Thanks

    1. Hi Loevdav,

      Great question. You can send data like this to another page by building out a query string with Smart Tags. In case it helps to get started, we cover a basic example of using query strings in this tutorial.

      To send entry data out from a form, you’d first need to open the form builder and go to Settings > Confirmation — then switch to Go To URL (Redirect). That way, you can build out a custom URL with a query string.

      Then, within that URL you can add Smart Tags that pull values for you. For example:

      http://example.com/plugin?entry={entry_id}

      I hope that helps you get started! If you have any other questions, please get in touch 🙂

      1. Hi Jess,

        thanks for the reply, Actually I did tried this before but instead of redirecting to the URL it redirected to the original page with a totally different querystring. Something ike ?wordpress={very long id that looks like a pyapl token}.

        Please note that the form ues Payapl checkout for payment so that might be the issue.
        Thanks

  3. Hello,
    I have a question about WPforms. I made a onepage template with id transitions.
    Is there a way for the form to submit a message and then redirect/refresh the form after lets say 10 seconds.

    Thank you in advance.
    Alar

  4. Hi I’ve just installed the contact form and when I’ve tried it the email doesn’t come through to me. Any ideas? thank you

  5. hi jess, i actually need a plugin that would be able to log users in to another page and it should be able to check if the user used correct details which will be in a database. note there’s is no registration, it is the admin that would input the login details in the back end . thanks

  6. On submit it is not redirecting to the page and it displays “2018-02-22 06:30:43 Connection: opening to smtp.1and1.com:587, timeout=300, options=array ( ) etc.,” instead of displaying the redirect page. Any help?

  7. Hello, is it possible to redirect to different pages according to the answers ?
    For exemple, if I ask are you a male or a female, and then at the end of the form i want one specific confirmation for male and female, can i do this ? how ?

  8. Hi! On my confirmation tab I have 3 options to redirect people…Message/Show Page/URL. I have it set up to redirect to a message with a message all set up. I have learned that my customers are not receiving this message. How can I fix this?

  9. Hi. I’m a dietician building a website for my practice. I need to create a customised form which has health related fields. Some of these will need to have check boxes and some will need written answers. Can I do that? Also, can this form be seen only by the people who have already paid?

    1. Hi Shikha,

      Sure, you can absolutely customize your forms however you’d like. In case it helps, you can find a list of all fields available in our forms in this tutorial.

      As far as restricting access to the form, we don’t currently have any built-in way to do that. However, if you use an additional plugin (Restrict Content is a popular free option) you can easily restrict access to any content on your site based on user role or whether a user is logged in/out.

      I hope this helps! If you have any other questions, please get in touch 🙂

  10. I have a page I want people to fill out a form to access. The page is a calculator to help their business, would they have to fill out the form every time they access the page? Or can I use this so that they only fill out a form 1 time and they can then access this page anytime they’d like without having to fill it out every time. The only way people can view the calculator will be to basically register for it.

    1. Hi Jared,

      We don’t currently have any built-in way to restrict access to content on your site. This means that unless you add additional code/a separate plugin to restrict access to this calculator page in some way, the page will be accessible to anyone who knows or finds the URL.

      If you’d like to try and restrict access (require users to complete a form first), there are a couple options you could consider:

      1) As part of your form, require users to register to your site (this can be done with our User Registration addon, available with our Pro license level or higher). Then you could restrict access to your calculator page so that only logged-in users can see it (Restrict Content is a popular free plugin for this).

      2) As a less strict approach you could simply block the calculator page from Google. That way, people wouldn’t end up on this page from a search engine (very unlikely they’d get to it without following the steps you want them to). Here’s a tutorial from WPBeginner on how to set this up.

      I hope this helps! 🙂

  11. I am building a site with a single page layout. I have a button at the top of the page but I would like the user to be redirected to the contact form on the bottom of my page. is that possible and if so how?

    1. Hi Damian,

      Yes this is possible, though it’s not related to the functionality of our forms. It takes a bit of explaining, though, making it tough to share in a blog comment. For an example, here’s a basic tutorial I found. Or if you’d like more details, please just get in touch when you have a chance.

      If you have a WPForms license, you have access to our email support, so please submit a support ticket.

      Otherwise, we provide limited complimentary support in the WPForms Lite WordPress.org support forum.

      Thanks 🙂

  12. Hi, we are using the standard version, but looking at upgrading. I have a large form for a job applicant that can take an hour or so to complete, therefore can they save a form half way through and return later to complete and submit?

    Thank you

    JC

    1. Hi JC,

      We don’t currently have an option to save and continue later. But I agree this would be super useful, and it’s on our feature request list to consider down the road 🙂

  13. Hi could you please help, i had a form working great. Now when i click the submit button it reloads the form from the beginning and the entries don’t even go through to me. I have selected to redirect it to a certain URL but instead it reloads the same form page. Please help me find a solution!

  14. Sorry about the basic question here: Is there a way to simply have a form with one field where visitors enter their email and, upon submission, an email is sent with that email address, a “thank you” is shown, then visitors remain at the same page where they began?

    1. Hi Paul,

      Yes, you can absolutely set this up! In fact, what you’ve described after submission is our default form behavior 🙂 A few details (and you can click the links for more information):

      – Form(s) however you’d like, including just a single Email field
      – You can choose what users see after submitting the form under the Confirmation settings. By default, the confirmation will be set to display a thank you message — this message will be on the same page and will simply replace the form.
      – You can send out automatic notification emails, sent as soon as the form is submitted.

      I hope this helps! 🙂

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.