SBM JavaScript Library Guide → Internal Functions → GetFieldByName
Finds an HTML DOM object that matches the specified name. Use this command to find the field to use in other JavaScript calls.
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. |
Result | Value |
---|---|
Success | Field object corresponding to a field. This can be an <input>, <select>, <textarea>, or <span> element. |
Failure | Null |
This example returns the field object:
GetFieldByName("State");
(none)
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.