User Guide

Acrobat Forms - JavaScript Object Specification
40
display
Type: Integer Fields: All Access: R/W
This property controls whether the field is hidden or visible on screen and in print:
This property supersedes the older hidden and print properties.
doc
Type: Object Fields: All Access: R
This property defines the document the field belongs to. Its value is the this Object or the this
Object . Please refer to the this Object section for more details.
editable
Type: Boolean Fields: Combobox Access: R/W
Combo boxes can be editable, that is, the user can type in a selection. This property determines
whether the user can type in a selection or must choose one of the provided selections.
var f = this.getField("MyComboBox");
f.editable = true;
fillColor
Type: Array Fields: All Access: R/W
This property specifies the background color for a field. The background color is used to fill
the field’s rectangle. Values are defined by using transparent, gray, RGB or CMYK color.
Refer to the Global Object section for information on defining color arrays and how values are
used with this property.
var f = this.getField("MyField");
if (color.equal(f.fillColor, color.red))
Effect Keyword
Field is visible on screen and in print display.visible
Field is hidden on screen and in print display.hidden
Field is visible on screen but doesn’t print display.noPrint
Field is hidden on screen but prints display.noView
4.0