• Hello.
    I have one select field in my form and would like to redirect the user to three different pages on behalf of what the user choose.

    My Form:
    [select* menu-order default:3 id:order “Apple” “Orange” “Apple And Orange”]

    Then in “Additional Settings” i have this line:
    on_sent_ok: ” if (document.getElementById(‘order’).value==’Apple’) {location.replace(‘http://www.apple.com’)} else { location.replace(‘http://www.Orange.com’)} “

    But that does just work for two of the options. How can i add an extra “if”? I have tried adding one exact the same as the first “if” but it wont work.

    Thank you.

    https://wordpress.org/plugins/contact-form-7/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect on an condition?’ is closed to new replies.