Gets the form field at the current text input position or the form field with the specified id.

<void> FormFieldCollection.getItem(<RequestFormFieldCallback> callback, [<ErrorCallback> errorCallback], [<number> id])

Parameters

Parameter Description
callback The callback function that receives the requested value.
errorCallback Optional. Is called when the operation failed with an error.
id Optional. Specifies the text field's identifier set with the ID property. The method returns null if a form field with the specified identifier does not exist.

Further Reading

Learn more about the Javascript: FormFieldCollection.getItem Method in the Text Control Blog: