This script checks a field for the value of "10" if it does not equal "10" a message is displayed and "Do you want to continue? The Yes and No button do appear but I don't know how to code the rest. If it does continue it is sent to an email to submit. Right now whether yes or no are checked it goes to the e-mail. I want it to continue if "yes" is chosen and end and drop back to the form for correction if "no" is chosen.
//Get total Days
var nval=this.getField("Day").value;if(nval != 10) {app.alert({cMsg: "Total days do not equal 10, Do you want to continue?", nIcon: 2, nType: 2, cTitle: "Total Days Validation",});}
Here is where I need help i have tried several variations
if (choice==3)end;
Any help is greatly appreciated.
Thanks
George Kaiser