Contact 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
- Make the thank you page.
- Make your contact form or use an existing form
- At the bottom of the contact form settings page is a section called Additional Settings with a big text block.
- In that area add the following:
on_sent_ok: "location.replace('http://www.YOURSITE.com/name of page');"
- 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
Arunkumar Gudelli says
Good one Thanks for sharing..
Liz says
This is great, Kim! thank you!! I am wondering if this will bypass the mailing of the contact form info or it will still happen? I have had a couple of clients who are not getting their contact form info on their site branded email, but get it if sent to a gmail or Yahoo account.