Updates the defined field with the supplied option data.
This is a low level function. In general use, the options function property of the field should be used.
Executed
Client-side only.
Arguments
Argument | Type | Description |
---|---|---|
inputID | String, required | The ID in the DOM of the field to update |
optionData | Array, required | The option data |
Example
The following function has been added to the script button. It replaces the original options with those supplied.
function (helper) {
helper.utilRefreshSelectOptions('UTILREFRESHSELECTOPTIONS_DROPDOWN', [["value1", "display1", "group"], ["value2", "display2", "group"]]);
}