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
Post a Comment