WPForms Blog

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

How to Redirect Users after WordPress Form Submission

How to Redirect Users after WordPress Form Submission

by Shahzad Saeed on Jan 17, 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 tutorial, we will 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 that their message was received. You can use this opportunity to connect further with your interested visitors.

You can redirect your visitors to a:

  • Thank You Page – Send users submitting your contact form to a customized thank you page
  • Hidden Content – Place your lead magnet in a 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 also visit your appointment scheduling system and book a time with you.
  • Anywhere – You can redirect users after WordPress form submit to any page on your site or anywhere online.

Here’s how to redirect users after WordPress contact form submission.

Get WPForms and Install

The first thing you need to do is install and activate the WPForms plugin. Here’s a step by step guide on how to install a WordPress plugin.

Once you have activated the plugin, let’s go ahead and create a new contact form.  If you haven’t created a form yet, see our step by step guide on how to create a simple contact form.

Redirect Users After WordPress Form Submit

After you have created your form, you are ready to redirect users to another page once they submit the form. You have two options: within your site or external link.

First option is sending the user 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. After this, select the Confirmation Page dropdown and choose which page you want to send the user to.

show page confirmation

Alternatively, you can send form submission users to any web address you’d like.

While in the Settings » Confirmation area, select the Confirmation Type as Go to URL. Then paste the complete website address you’d like to send the user to.

After you have configured where redirect users after a WordPress form submit, click Save.

Publishing a WordPress Form that Redirects Users

Finally it’s time to publish your form. WPForms allow you to add your forms in various locations from your blog posts, pages, and your sidebar (widget-ready areas).

First let’s take a look at the most common post / page embed option. Start by creating a new post or page in WordPress and then click on the Add Form button there.

Next, you need to select your form in the modal popup and click Add Form.

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 and GetResponse.

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.

That’s it.  Now you can redirect users to another page or URL when they submit a form on your website. We hope this article helped you redirect users after a WordPress form submit.  In addition, you might want to check out our guide on How to Create a File Upload Form in WordPress.

If you like this article, then please follow us on Facebook and Twitter for more free WordPress tutorials.

Comments

    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 🙂

  1. 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

  2. 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

  3. 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

  4. 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

  5. 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?

  6. 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 ?

  7. 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?

  8. 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 🙂

  9. 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! 🙂

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.