I would like to color the background of a textbox red if a checkbox is checked but I can't get the code working.
Can somebody help me ?
code:
var f = this.getField("urgent");
var ff = this.getField("urglabel");
if (f.isBoxChecked(0)) then {
ff.fillColor = color.red;
}
else {
ff.filColor = color.white;
}
2. You have a typo in this line:
ff.filColor = color.white;
It should be:
ff.fillColor = color.white;
3. Where did you place this code?
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com