watch4him
Member
Posted 7 months ago #
I did everything that the tutorial said to do. Yet, it is still not working. I'm not sure why this feature isn't a primary feature. My users would be super confused if they submitted a form only to find the form comes right back up again empty. Only a little bit of text at the bottom saying that the form was successful.
Here is the tutorial I followed -
http://contactform7.com/redirecting-to-another-url-after-submissions/
The page I'm trying to use this on is here -
http://threepillarsmedia.com/web-questionnaire
Any help would be greatly appreciated.
--EriK
http://wordpress.org/extend/plugins/contact-form-7/
Redirecting to Another URL After Submissions
If it doesn’t work, check if Ajax is correctly working on your site. It is a JavaScript hook, so it needs JavaScript to work.
mattschaller
Member
Posted 7 months ago #
Just want to confirm that as of 10/24/2012, I cannot seem to hook onto 'on_sent_ok' with even the simplest JavaScript. And yes, AJAX is correctly working on my site. I notice an increase in chatter regarding similar problems in the last few days.
WordPress Version 3.4.2
WPCF7 Version 3.3.1
watch4him
Member
Posted 7 months ago #
Here is what I did to fix it...
I manually inserted the script tags found at the bottom of the page for the tutorial into my own site. (just before the closing body tag)
<script type="text/javascript" src="http://contactform7.com/wp-content/plugins/contact-form-7/includes/js/jquery.form.min.js?ver=3.18"></script>
<script type="text/javascript">
/* <![CDATA[ */
var _wpcf7 = {"loaderUrl":"http:\/\/contactform7.com\/wp-content\/plugins\/contact-form-7\/images\/ajax-loader.gif","sending":"Sending ...","cached":"1"};
/* ]]> */
</script>
<script type="text/javascript" src="http://contactform7.com/wp-content/plugins/contact-form-7/includes/js/scripts.js?ver=3.3.1"></script>
This worked for me. (of course I replaced the src to match where my files were on my server)