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:
TOWN is a is list box with these options:
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):