Field calculations of a calibration form
Good morning! I'm creating a calibration test form. In this form, there are "as found" and "as left" columns. In the "as found" column, i have different calculations that change the background color based on the user input and whether or not the test is successful (green) or needs additional calibration (yellow).
I'm looking for a script that will copy the "as found" field if the background is green, into the "as left" field. And if the "as found" field is yellow, it will allow the user to type in the calibrated result so that the "as left" field turns green. Below is a copy of the "as found" field. Any help would be appreciated! Hope this wasn't too confusing 😕😕 I can ellaborate more if you need 🙂
var v = Number(event.value);
{
if (!event.value)
{event.target.fillColor = color.transparent;}
else if (v<7.462 || v>7.538) {event.target.fillColor = color.yellow;}
else if (v>=7.462 && v<=7.538){event.target.fillColor = color.green;}
}
