javascript - Form submit redirect not working using Contact Form 7 WordPress plugin -


i'm using contact form 7 plugin on wordpress site , found method redirect form url documentation on this page.

i tried adding following code additional settings field on form:

on_sent_ok: "location = 'http://example.com/';" 

i tested on my website @ top of page via 'request quote' button , submitted. unfortunately no redirect forced.

why feature not working? i'm using form within lightbox (this reason), need redirect homepage when submit form 'one-page' website.

please feel free test yourselves, receive test emails anyway @ moment.

thanks

well, have simple solution:

just add first of messages fields in contact form, 1 titled: "# sender's message sent successfully":

your message sent successfully.

<script>window.location.href = 'http://www.example.com';</script> 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -