Javascript on a pdf form to change the colour of a field depending on the value in another field
I have used the following code to change the colour of a text field in a PDF form depending on the value entered into that field.
var v = +event.value; {
if (v>=1 && v<=5)
event.target.fillColor = ["RGB",0.537,0.776,0];
}
Can anyone suggest how I can modify this code to change the colour of another field?
I want to change the colour of field "Text453" depending on the number entered into field "RISK"
(I have posted this question on another forum.)
