• anonymized-13755187

    (@anonymized-13755187)


    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://ww.wp.xz.cn/plugins/contact-form-7/

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Redirect on an condition?’ is closed to new replies.