This topic is locked

Check if one of the two dropdown list has been used

6/6/2007 6:34:35 PM
ASPRunnerPro General questions
I
igiacchi author

I have now this problem.

If I have two dropdown list in the same form How I can check if one of the two dropdownlist was used to choose one value in alternative?

This to avoid to have a required value in one or another dropdown list.

Sorry for my poor english.

Many thanks in advance for your help.

Ivano

F
funklet 6/10/2007

Ivano,
If I have read this correctly you wish to know if one out of the two dropdowns have had a value chosen from them so you can make sure that you are not forcing the user to choose from both dropdowns.
I would make neither required fields but use event code in 'before record added' to see if the value has been changed from the original. If neither have been changed then beforeedit = false
If I knew more about the fields involved I could suggest some code.

I
igiacchi author 6/11/2007

Was too simple for my mind !

Many thanks for your help.

Ivano