I have radio of two options. I want to display one of three popups based on the option chosen (either one or none is chosen). The popups should show after the user click button (submit). So I've added the JS on blick:
code
var rad1 = Boolean(Apperyio('mobileradiobutton_295').find("input").val());
var rad2 = Boolean(Apperyio('mobileradiobutton_296').find("input").val());
var checkedValue1 = Apperyio("mobileradiobutton_295").find('input[type="radio"]:checked').val();
var checkedValue2 = Apperyio("mobileradiobutton_296").find('input[type="radio"]:checked').val();
if(checkedValue1 == "rad1"){
Apperyio("mobilepopup_298").popup("open");
}
else if(checkedValue2 == "rad2" ){
Apperyio("mobilepopup_399").popup("open");
}
else {
Apperyio("mobilepopup_300").popup("open");
};
/code
However, it always shows the last option (else)!