Quantcast
Channel: WordPress Plugin – (Anti) Social Development
Viewing all articles
Browse latest Browse all 11

How to Redirect Contact Form 7 to a Thank You Page

$
0
0

thank youContact Form 7 is my most frequently used free WordPress contact form plugin. It just does what I need it do without any fuss.

After a form is submitted there is a message at the bottom of the page that says the form was successfully submitted. Well, usually – sometimes there is an error message.

Recently someone asked me if the form could redirect to a thank you page. Here’s how you do it.

Instructions

  1. Make the thank you page.
  2. Make your contact form or use an existing form
  3. At the bottom of the contact form settings page is a section called Additional Settings with a big text block.
  4. In that area add the following:
    on_sent_ok: "location.replace('http://www.YOURSITE.com/name of page');" 
    

    additional_settings

  5. Change http://www.YOURSITE.com/name of page to the url for your page.

You will still see the thank you message at the bottom of the page but the page will quickly redirect to the new thank you page.

photo credit: wwworks

The post How to Redirect Contact Form 7 to a Thank You Page appeared first on (Anti) Social Development.


Viewing all articles
Browse latest Browse all 11

Trending Articles