User Guide

Acrobat Forms - JavaScript Object Specification
41
f.fillColor = color.blue;
else
f.fillColor = color.yellow;
In older versions of this specification, this property was named
bgColor
. The use of
bgColor
is
now discouraged but for backwards compatibility is still valid.
hidden
Type: Boolean Fields: All Access: R/W
This property controls whether the field is hidden or visible to the user. If the value is false the
field is visible, true the field is invisible. The default value for hidden is false.
// Set the field to hidden
var f = this.getField("MyField");
f.hidden = true;
See also the display property which supersedes this property in later versions.
highlight
Type: String Fields: Button Access: R/W
This property defines how a button reacts when a user clicks it. The four highlight modes
supported are none, invert, push and outline.
•Thenone highlight does not indicate visually that the button has been clicked.
•Theinvert highlight causes the region encompassing the button’s rectangle to invert
momentarily.
•Thepush highlight displays the down face for the button (if any) momentarily.
•Theoutline highlight causes the border of the rectangle to invert momentarily.
The highlight object defines all the characteristics that a button can have. Use it in your
scripts to access the highlight of choice. The following chart shows the highlight object and its
associated keywords:
Type Keyword
none highlight.n
invert highlight.i
push highlight.p
outline highlight.o