WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Sticks101
    Member
    Posted 1 year 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

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 1 year ago #

  3. avipr
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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

About this Topic