Contact Form 7
[resolved] Redirecting to Another URL - Not Working (4 posts)

  1. watch4him
    Posted 3 years 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 -

    The page I'm trying to use this on is here -

    Any help would be greatly appreciated.



  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

    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.

  3. mattschaller
    Posted 3 years 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

  4. watch4him
    Posted 3 years 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 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)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic