Toggle menu

Filtering Options in Lists

If your options are organised into groups, the filterOptions helper function can be used to control which options appear.

This example has two fields. COUNTY is a drop-down field with a list of county names:

List Options - Counties
 

TOWN is a is list box with these options:

List Options - Towns
 

Note how the values of the COUNTY field match the groups of the TOWN field.

The COUNTY field has a handler function, which filters the list of towns by the chosen county (ie by the chosen group): 

Filter Options
 

Share this page

Facebook icon Twitter icon email icon

Print

print icon