- Tue Jun 25, 2019 7:51 pm
#825099
return False on each of the following methods will still submit the form
Code: Select all
This code will stop submitting a form.Assume you have 3 different validating methods. form = getFormById("637207031573dceaf797e28050874261");
form.setOnSubmit(function(){
if ($("#invoiceAmount").getValue() <= 500 || $("#invoiceAmount").getValue() == "") {
alert("The Invoice Amount is too high or is empty.");
return false; //stop submit
}
});
return False on each of the following methods will still submit the form