Contact form plugin used – Contact Form-7 

If you wish to re-direct to a confirmation/thank you page after submitting the contact form, follow the below steps:

1)Go to Contact from the dashboard menu

2) Scroll down to ‘Messages’ section, here , under the ‘Sender’s message was sent successfully’ you will see the current message displayed on submitting a form successfully, what you need to do is, delete entire text from there.

contact

3) Scroll down further to ‘Additional Settings’ section, and add this piece of code there, this is the link of the page to which redirection has to be done.
on_sent_ok: "location = 'http://www.mywebsite.com/thankyou/';"

4)Save the contact form and now you will be redirected to a new page on successful submission.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Tag Cloud

%d bloggers like this: