Toggle menu

helper.utilRefreshSelectOptions(inputID, optionData)

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

ArgumentTypeDescription
inputIDString, requiredThe ID in the DOM of the field to update
optionDataArray, requiredThe 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"]]);
}

Share this page

Facebook icon Twitter icon email icon

Print

print icon