jQuery(".validateSubmit").click(function(){
ASK_FOR_LEAVE_CONFIRMATION = false;
});
jQuery(".validateSubmit").click(function(){
ASK_FOR_LEAVE_CONFIRMATION = false;
/* * below custom validation is added for covid certificate validation, please change the field ids
* field154 is dropdown of status
* 149 is dose 1 certificate
* 152 is dose 2 certificate
*/
switch(jQuery("#field154").val()){
case "Fully Vaccinated":
if(jQuery("#field149").val()=="" || jQuery("#field152").val()==""){
alert("Please attach both doses` certificates");
return false;
}
break;
case "Partially Vaccinated":
if(jQuery("#field149").val()==""){
alert("Please attach your Does 1 certificate");
return false;
}
break;
}
});