conditional redirects for dropdown menu
-
Hi all,
What I’d like to achieve is to redirect to a specific page defined by the choice made in the dropdown menu.
I tried this:
on_sent_ok: “var Iso = $(“select[name=menu]”).value() ;
if(Iso == ‘choice 1’ ){
location = ‘http://www.domain.com/page1’;
}
if(Iso == ‘choice 2’ ){
location = ‘http://www.domain.com/page2’;
}
if(Iso == ‘choice 3’ ){
location = ‘http://www.domain.com/page3’;
}”while the mail is succesfully send the succesfully send message is not displayed and no redirect. I tried disabling all plugins to rule out conflicts but nothing.
Help is much appreciated, thanks all!
The topic ‘conditional redirects for dropdown menu’ is closed to new replies.