WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Why Redirecting to Another URL After Submissions (8 posts)

  1. pikkabbu
    Member
    Posted 1 year ago #

    First of all, I believe that this tip I’m writing on this post is not necessary for 99.99% of users and, actually, I don’t recommend using it. I’m writing this for the 0.01% of you, so you can ignore it if not necessary.

    This is what the author says. ;-)

    But as long as Contact Form has no Paypal connection, it's usefull to make training courses' order forms.

    Page 1:
    Reservation form
    Name, email, phone, etc.
    [SUBMIT]
    redirect to page 2

    Page 2:

    Paypal training cart. Pay here !
    (WordPress Simple Paypal Shopping Cart Plugin. Very nice)
    Paypal redirect to page 3.

    Page 3:

    Confirmation and thank you for your order.

    May be useful to someone more.

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

  2. Mooke
    Member
    Posted 1 year ago #

    Hi this is exactly what I am trying to achieve. How do you get the redirect to the next page setup???

    Thanks in advance.

  3. pikkabbu
    Member
    Posted 1 year ago #

    Hi Mooke !

    I'm sorry, I was sure I told it in my post. Woops.

    At the very end of the contact form 7 setting, there's a text area whose name is "additional settings" (or similar, my version is in spanish).

    There, you've to write the redirection instructions:

    on_sent_ok: "location.replace('here_comes_your_url_to_redirect_to');"

    I found it there: http://contactform7.com/redirecting-to-another-url-after-submissions/

    Happy if this can help. Almost everything I learned to do with WP is thanks to others users. ;-)

    Ask 4 more if needed.

  4. Mooke
    Member
    Posted 1 year ago #

    Thanks, makes perfect sense.

  5. karpediem
    Member
    Posted 1 year ago #

    It doesn't work for me with WP 3.5.1 and Contact Form 7 version 3.3.3 ;-(
    What are your version of WP and Contact Form 7 ? Thank you

  6. erjay_27
    Member
    Posted 1 year ago #

    it doesn't work for me also . . any other idea . .??

  7. karpediem
    Member
    Posted 1 year ago #

    For me it works now. In fact, I wrote the
    on_sent_ok: "location.replace('here_comes_your_url_to_redirect_to');" in
    in the bad field => "additional header", I hadn't seen "additional settings" field :-((.
    Now I put it in "additional settings" field and it's works correctly. I have nevertheless problem that I can't make hooks work...

  8. pikkabbu
    Member
    Posted 1 year ago #

    Karpediem.
    Great !

    Enjoy you day ;-)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic