Redirect on an condition?
-
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(‘https://www.apple.com’)} else { location.replace(‘https://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.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Redirect on an condition?’ is closed to new replies.