Custom calculation script not working, please help!
I don't know why this isn't working.
I entered the following in custom calculation script in the RegHrs1 text field, but I'm not getting the alert when the Shift Premium checkbox is ticked. What am I doing wrong??
var a = this.getField("ShiftPrem1").value;
var b = this.getField("RegHrs1").valueAsString;
if(a=="Off") event.value=b;
else if (a=="Yes") event.value="";
if ( (b!=="") && (a=="Yes") ) app.alert("Please enter hours first",0);
