Contact Form 7
[resolved] Redirect upon submit (4 posts)

  1. Sticks101
    Posted 3 years ago #

    Trying to utilize the script from Contact7 website for redirect: on_sent_ok: "location = 'http://example.com/';"\

    It's not working regardless of what URL I use. Trying to have the form info emailed to one address while redirecting them to another page.

    Ideas? Help?

    Sticks 101


  2. Takayuki Miyoshi
    Plugin Author

    Posted 3 years ago #

  3. avipr
    Posted 3 years ago #

    Hi its very easy, just put your desired url in the Additional Settings box

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

    Remember you should include footer function in footer.php, otherwise it will not work.

    Second solution is to change the coding in plugin file
    Hope it will help you.

  4. marjorielazaro
    Posted 3 years ago #

    I am having the same problem.
    Footer function is there, the ajax is working too.

    The form seems to work but I get my confirmation message on the same page instead of redirecting to my wordpress page.

    And here is what I've added in the additional settings:
    on_sent_ok: "location = 'http://www.isosante.com/merci-inscription';"

    Found the problem. It was a conflict with another plugin.

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