Writing a validation script to javascript......
Hi,
I've found a topic about validation of fields.
When a field meet a specific value, the background color changes.
var v = Number(event.value);
if (v>=1 && v<=6) {event.target.fillColor = color.red;}
else event.target.fillColor = color.white;
This is exactly what I want, but I'm using number field with decimals.
How can I check If the value is between 1 and 6.49 and color it red and with all other values, color it white ?
I've tried this, but it didn't work:
var v = Number(event.value);
if (v>=1 && v<=6.49) {event.target.fillColor = color.red;}
else event.target.fillColor = color.white;
Can anyone help me out here ?
