Contact Form 7
How to redirect subscribers to another page when they optin? (6 posts)

  1. sammas
    Posted 4 years ago #

    Once someone enters in their details (email, name, etc) I want to then redirect them to another page, where they can download a report let say.

    How can I do this using contact 7? is it possible?

    Thanks for you help


  2. shachafp
    Posted 4 years ago #

    HI all you need to do is add this code to your additional setting at the bottom of the contact form page

    on_sent_ok: "location = 'http://www.yoururl.com/ ';"

  3. sammas
    Posted 4 years ago #

    Hi thanks but it stop working.

    I did what you said and it worked great, then I changed a field in the form and now it won't work.

    I have double checked many times, and can't see why it worked before and not now. Can you help on this please.

    Thank you

  4. RterBeest
    Posted 4 years ago #

    on_sent_ok: "location = 'http://www.yoururl.com/ ';"

    is not working...

    I can see the text of this link on my contact form page.

    What can I do?

  5. Maurizio Spicuglia
    Posted 4 years ago #

    Hi here http://contactform7.com/redirecting-to-another-url-after-submissions/ they suggest that tips but they say also:
    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.
    and suggest this test

    bye Maurizio

  6. aml5578
    Posted 4 years ago #

    Has anyone figured this out? I followed your directions nextart and it is still not working for me.

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