• Resolved thelmick

    (@thelmick)


    I have the latest version of WP (3.3.1) and Contact Form 7 (3.1). I went to the developer’s site and found that this is the code to redirect to another page after submission:

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

    So I added it to my additional setting panel and changed the URL.

    on_sent_ok: "location = 'https://win-winentertainment.org/thank-you/';"

    Here is the page that the form lives on: https://win-winentertainment.org/non-profit-registration/
    But when it is submitted it just reload the current page and shows the green success box at the bottom. Any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Redirecting to Another URL After Submissions

    It is also mentioned:

    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. You’ll need another hack if you need to redirect on non-JavaScript environments.

    kevintucker

    (@kevintucker)

    I’m having the same problem. I get an empty green box that pops up just like before – but it ignores the redirect. Ajax is working fine. Somehow it’s hung up on using the green box as the confirmation message instead of using the redirect.

    Am I missing a step somewhere to *disable* the green confirmation box, so that it allows the redirect?

    Thread Starter thelmick

    (@thelmick)

    I fixed my problem with this. It was a jQuery error. To find the problem I used firebug and looked at the console for errors. There was an error, so I disabled all my plugins. The error was still there. I did some searching on the error I was getting and found the solution. In my case it was a problem with the custom jQuery in the theme I’m using.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contact Form 7 – Not redirecting after submission’ is closed to new replies.