[Contact Form 7] Conditional Redirect (v3.3.3) (2 posts)

  1. maffmommie
    Posted 3 years ago #

    I have searched for a solution to conditional redirects for Contact Form 7. I have found and tried to apply the concepts posted here: http://wordpress.org/support/topic/plugin-contact-form-7-conditional-redirect?replies=15

    However, v3.3.3 doesn't seem to have the code that must be changed in scripts.js.

    Here is what I'm trying to do:
    Radio Button [radio pay "PayPal" "Check"]

    If they click check redirects to, say google.com. if paypal is selected redirects to paypal.com.

    Please assist.

  2. maffmommie
    Posted 3 years ago #

    I've even used something like this:

    on_sent_ok: " if (document.getElementById('car').value=='yes') {location.replace('http://www.redirectedpage1.com')} else { location.replace('http://www.redirectedpage2.com/') } "

    The form is sent but it doesn't redirect nor does the green box pop-up.

Topic Closed

This topic has been closed to new replies.

About this Topic