Discussion Locked
0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have a form whih contains among others two fields -Referee and Consultancy. Only when the Referee field is not blank some of the consultancy types can be chosen from the Combobox used by this control. Question is how to ensure that the items in the combo box are filtered based on whether the field Referee is filled in or left blank and only relevant applicable consultancy types are shown in the combo box
5 replies
by andrew
The easist way would be to dynamically populate the Consultancy combo after the user selects an option from the Referee combo.
Depending on your platform (VB, Web) this can be implemented with events, JavaScript/DHTML or ASP form posts.
by sadbhavana
Poster rated this answer
by glen_mcleod
In VB you could check the contents in the change event of your Referee cbo, and if blank, set the Consultancy cbo's ListIndex property to -1. This will cause nothing to be selected in the cbo. I don't know the exact syntax in javascript/DHTML, butit should be similar.
Glen
by sadbhavana
Poster rated this answer
by sadbhavana
This question was closed by the author
This discussion is closed to new replies.
Trending Web Development posts
Sort by Trending
0 helpful
1 reply
0 helpful
1 reply
0 helpful
1 reply
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply