GetFieldByName

Finds an HTML DOM object that matches the specified name. Use this command to find the field to use in other JavaScript calls.

Note: Use the GetFieldWidgetByName method for complex field types (such as Single Selection, Multi-Selection, Single Relational, and Multi-Relational).

Parameters

Name Type Description
fieldName String The name of the field to find. The Name or Database field name specified on the field Property Editor can be used.

Return Value

Result Value
Success Field object corresponding to a field. This can be an <input>, <select>, <textarea>, or <span> element.
Failure Null

Examples

This example returns the field object:

GetFieldByName("State");

Comments

(none)