Hi,
I'm trying to print "Fail" in red letters in a text box if the value in another text box is worng.
Here's what I have in the text box wher I want the "Fail" message:
var one = this.getField("Text6");
if (one.value != '1234')
{
event.value = "fail";
}
else
{
}
this isn't working, and I have no idea how to make the letters red when I get it fixed. Can anyone help?
To set the text as red just go to that field's properties and change the text color under Appearance.
By the way, you'd probably want to add something like event.value="" in the else-clause, or the "fail" text will stay there forever once it's set.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com