InMotion Hosting Support Center

Contact Form 7 is a versatile WordPress contact form and more secure method than basic PHP code. Below we cover how to redirect users to specific webpage after completing a contact form.

Redirect Useres

  1. Log into WordPress.
  2. On the left, press Contact Forms under Contact.
  3. In the Additional Settings tab, type the following, replacing domain.com with your preferred redirect URL:
    <script>
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = 'http://domain.com/';
    }, false );
    </script>
    
    Press Save. The number beside Additional Settings matches the number of lines below.
    Add redirect code

To learn more about Contact Form 7, check out our guide on securing contact forms against spam.

Was this article helpful?
Continued Education in Course WordPress
You are viewing Section 2: Redirect Users After a Submission with Contact Form 7
Section 1: What Can I Do With My WordPress Admin Account?
Section 3: How to Set Expiration Dates for Posts in WordPress

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!