validation of two depending dropdowns

Hi,

I’ve got two dropdowns.

The first one contains a list of all streetnames (option Group => IS service),

The second dropdown contains a list of all available housenumbers for the selected street (option Group => IS service).

Both dropdowns have default values (choices => option item before option group). “Please choose a street”, “Please choose a housenumber”

I’ve added a custom validator to the first.

If the selected value is “Please choose a street” it throws an exception.

Now I’ve added a custom validator to the second dropdown.

If the selected value is “Please choose a housenumber” it throws an exception.

Now the second validator always throws an exception when the first dropdown changes its value, because the first dropdown sets the value of the second dropdown to “Please choose a housenumber”.

Tobias