Add another value to my custom calculation script
This works when I add the following script to the Custom Calculation in the 'JobType' text field, I type Regular in my 'Status' Text Field the number 1 shows up in 'Job Type' text field.
The problem is I also need to be able to type Temp so the number 2 shows up, but when I try to add it and and I type Regular in the 'Status' field 2 shows up in 'Job Type', not 1. I've tried everything and it's probably so simple ![]()
var a ="";
if (this.getField("Status").value == "Regular"){
a="1";
}
event.value = a;
