Toggle menu

_OPTIONDATA and _OPTIONGROUPS Variables

The list-type fields store their possible values, ie their options, in two dedicated form variables. Updating these variables will update the list. The variables are named after the field.

FIELDNAME_OPTIONDATA is an array of arrays, containing the value, display text and group of each option in the list.

FIELDNAME_OPTIONGROUPS is a comma separated list that sets which groups from the OPTIONDATA should be displayed to the user. When null all option groups are displayed.

Changing either of these variables using helper.setVariable()will dynamically update the list field.

Share this page

Facebook icon Twitter icon email icon

Print

print icon