GlideForm - getOption(String fieldName, String choiceValue)

Returns the option element for a selected box named fieldName where choiceValue matches the option value.

Note: This method does not work on read-only fields.
Table 1. Parameters
Name Type Description
fieldName String Name of the field.
choiceValue String Value of the option.
Table 2. Returns
Type Description
HTMLElement The HTMLElement for the option. Returns null if the field or option is not found.