New Customers Save 10% on their first web design project

WordPress Services

We Design Beautiful WordPress Websites

  • Creative Custom WordPress Designs
  • Strategic Marketing Strategies For Your Business
  • SEO Optimization and Execution
  • Digital Marketing and Social Media Management
  • Advertising With Google AdWords and Social Platforms

Contact Form 7 WordPress Tutorial Submit Button Redirect

Don Silvernail // 05/06/2014

This WordPress tutorial explains how to add a redirect to the submit button with Contact Form 7

Contact Form 7 is one of the most widely used contact form plugins in the WordPress universe. Its simple design layout allows for great customizations but for the beginner this can be a tedious process. Today we focus on a task that should be easy, but has given many trouble. How does one redirect the “Submit” button to another page? Lets understand why a contact form would need to do this in the first place.

Contact forms gather information from a potential client and delivers a leads to the business. Many times the business would like to thank the client for filling out the form, after all this will lead to future contacts. The submit button will redirect the client to a thank you page. This can come in handy when the performance of the contact form a tracking code can be inserted into the thank you page. This ensures only the successful click of the submit button get tracked not other web site traffic.

Well lets get down to it.

1. Click the contact form you have been working on under the contact tab.

2. Scroll down to the heading “Additional Settings”.

3. Insert this code on_sent_ok: “location.replace(‘http://yourdomain.com/’);”

That’s it. Now the submit button will redirect to the page of your choice.

This screenshot shows exactly where it goes.

WordPress Tutorial
Screenshot showing submit button redirect

This WordPress tutorial is brought to you by Silvernail Web Design.

Let our WordPress Services Deliver Results

WordPress Web Site Design, SEO Optimization, Content Marketing and Social Media Management

About the Author Don Silvernail

When you love what you do for a living, it's not work. I love Designing WordPress Websites and crafting unique Content Marketing Strategies for my Clients.
I am also a Fishing Enthusiast, avid Gamer, and most recently... I bought a Jeep and joined the Jeep Wrangler Club. If you see me on the road, don't forget to wave!

Enjoyed this article?

Find more great content here: