Sets the name of a text field.

<void> TextField.setName(<string> name, [<EmptyRequestCallback> callback], [<ErrorCallback> errorCallback])

Parameters

Parameter Description
name Relates a user-defined name to a text field.
callback Optional. Is called when the operation completed.
errorCallback Optional. Is called when the operation failed with an error.

Further Reading

Learn more about the Javascript: TextField.setName Method in the Text Control Blog: