S
sab
Hi,
We have a web form with a listbox. The listbox is a multiple select listbox
and has data that looks something like:
ALL
Unit 1
Unit 2
Unit 3
Note: "ALL" is always the first item in the list.
Anyway, ALL can be selected, but only if it is the only item selected (i.e.,
an invalid selection would be to select ALL and Unit 1). The other "Unit"
items can be selected by themselves or with multiple "Unit" items (e.g.,
Unit 1, or Unit 2 and Unit 3, etc.). The validations are:
If ALL and no Unit items selected, then valid
If ALL and one or more Unit items selected, then invalid
If one or more Unit items selected (without ALL being selected), then valid
We're having trouble figuring out how to validate that the user selected a
valid set of items.
Can anyone be of assistance? How do we write the code to validate this
situation? In what event should the code be placed? Etc?
Thanks in advance.
We have a web form with a listbox. The listbox is a multiple select listbox
and has data that looks something like:
ALL
Unit 1
Unit 2
Unit 3
Note: "ALL" is always the first item in the list.
Anyway, ALL can be selected, but only if it is the only item selected (i.e.,
an invalid selection would be to select ALL and Unit 1). The other "Unit"
items can be selected by themselves or with multiple "Unit" items (e.g.,
Unit 1, or Unit 2 and Unit 3, etc.). The validations are:
If ALL and no Unit items selected, then valid
If ALL and one or more Unit items selected, then invalid
If one or more Unit items selected (without ALL being selected), then valid
We're having trouble figuring out how to validate that the user selected a
valid set of items.
Can anyone be of assistance? How do we write the code to validate this
situation? In what event should the code be placed? Etc?
Thanks in advance.