Toggle menu

helper.utilFilterSelectOptions(inputID, optionData, groupNames)

Low level jQuery wrapper for re-building a set of HTML option elements from the supplied optionData object.

Only options contained within the groups specified will be included. The groupNames are supplied as a string containing comma separated list of names.

When designing forms you should use .filterOptions instead. This function is used in the form runtime itself.

Executed

Client-side only.

Arguments

ArgumentTypeDescription
inputIDString, requiredThe input ID
optionDataObject, requiredThe option data containing the grouped options you'd like to filter
groupNamesString, requiredThe groups of data you'd like to get from the optionData

Returns

An object of filtered option data.

Last modified on 09 March 2020

Share this page

Facebook icon Twitter icon email icon

Print

print icon