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 with your preferred redirect URL:
    document.addEventListener( 'wpcf7mailsent', function( event ) {
        location = '';
    }, false );
    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 5: Redirect Users After a Submission with Contact Form 7
Section 4: What Can I Do With My WordPress Admin Account?
Section 6: 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. Please click the button below to be redirected to the login page.

Post a Comment

Email Address:
Phone Number:

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?


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:
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!