JavaScript > JavaScript for Acrobat API Reference > JavaScript API > Collection > Collection methods > getField

getField
 
The getField method returns the collectionField object corresponding to the name of a collection field.
Parameters
 
A string that is the name of the field of the collectionField object to be retrieved.
Returns
A collectionField object, or null if the field is not found.
Example
Get the collectionField object of the "from" field.
var f = this.collection.getField("from");