Changing colour and locking text fields by clicking check box
Hi all
In interactive pdf forms is it possible to fill color in individual text fields basis certain criteria. For example i have a text field which automatically fills a number basis conditions in a checkbox.
now i want this field to change colour also at the same time. For better understanding please see below:
Text field - Score1
check box1
for now i have set the below script to get the desired value in Text field Score1 when the check box is clicked
if (event.target.value != "Off") {
this.getField("Score1").value = "60" ;
} else {
this.getField("Score1").value = "50" ;
now I want the text field to change colour to Red if i get 50 and to green if i get 60
please note that it is important that Text field Score1 is made non editable and change in colour stays permanent.
thanks for your help
