Adobe InDesign CS3 (5.0) Object Model JS: FormFields

InDesign CS3

Class

FormFields

 A collection of form fields.

QuickLinks

anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource

Properties

PropertyTypeAccessDescription
lengthnumber readonlyThe number of objects in the collection.

Methods

Instances

FormField anyItem ()
Returns any FormField in the collection.

number count ()
Displays the number of elements in the FormField.

Array of FormField everyItem ()
Returns every FormField in the collection.

FormField firstItem ()
Returns the first FormField in the collection.

FormField item (index: any)
Returns the FormField with the specified index or name.

ParameterTypeDescription
indexLong Integer
String
The index or name. Can accept: Long Integer or String.

FormField itemByID (id: number)
Returns the FormField with the specified ID.

ParameterTypeDescription
idnumberThe ID.

FormField itemByName (name: string)
Returns the FormField with the specified name.

ParameterTypeDescription
namestringThe name.

Array of FormField itemByRange (from: any, to: any)
Returns the FormFields within the specified range.

ParameterTypeDescription
fromFormField
Long Integer
String
The FormField, index, or name at the beginning of the range. Can accept: FormField, Long Integer or String.
toFormField
Long Integer
String
The FormField, index, or name at the end of the range. Can accept: FormField, Long Integer or String.

FormField lastItem ()
Returns the last FormField in the collection.

FormField middleItem ()
Returns the middle FormField in the collection.

FormField nextItem (obj: FormField)
Returns the FormField whose index follows the specified FormField in the collection.

ParameterTypeDescription
objFormFieldThe FormField whose index comes before the desired FormField.

FormField previousItem (obj: FormField)
Returns the FormField with the index previous to the specified index.

ParameterTypeDescription
objFormFieldThe index of the FormField that follows the desired FormField.

string toSource ()
Generates a string which, if executed, will return the FormField.

Element of

Cell.formFields

Character.formFields

Document.formFields

Group.formFields

InsertionPoint.formFields

Layer.formFields

Line.formFields

MasterSpread.formFields

Page.formFields

Paragraph.formFields

Spread.formFields

Story.formFields

Table.formFields

Text.formFields

TextColumn.formFields

TextFrame.formFields

TextStyleRange.formFields

Word.formFields

Jongware, 27-Jun-2010 v3.0.3dContents :: Index