Field Object; Field Access From Javascript; Field Properties - Adobe ACROBAT FORMS JAVASCRIPT OBJECT Specification

Adobe acrobat version 4.0
Table of Contents

Advertisement

Field Object

The Field object represents an Acrobat form field (that is, a field created using the Acrobat
form tool). In the same manner that an author might want to modify an existing field's
properties like the border color or font, the Field object gives the JavaScript user the ability to
perform the same modifications.

Field Access from JavaScript

Before a field can be accessed, it must be "bound" to a JavaScript variable through a method
this Object
provided by the
by modifying the field's object properties or accessing its methods. This affects all variables
bound to that field.
var f = doc.getField("Total");
This example allows the script to now manipulate the form field Total via the variable "f".

Field Properties

The following is a chart of field property names used by Acrobat with Javascript and the field
properties that are available:
Field Property
Type
Name
String
alignment
String
borderStyle
Integer
calcOrderIndex
Integer
charLimit
String
defaultValue
boolean
delay
Integer
display
Object
doc
Boolean
editable
Array
fillColor
Boolean
hidden
Acrobat Forms - JavaScript Object Specification
methods interface. More than one variable may be bound to a field
Text
Combo
List
Field
Box
Box
Push
Check
Radio
Button
Box
Button
Signa
Read
Write
ture
Access
Access
36

Advertisement

Table of Contents
loading

This manual is also suitable for:

Acrobat forms javascript object specification

Table of Contents