Hi, I am trying to figure how write code that will do the following:
I have a drop down combo box and a corresponding text field. What I would like to do is to make sure that the text field is not left blank only if a certain selection is made. For example, assume my combo box has the following items:
Apples
Oranges
Mangoes
Bananas
etc
and so, lets say that the user selects Mangoes from the list, I want him/her to enter a corresponding value in the text box for mangoes, which cannot be left blank because the value is required. But if the user selects Apples, then he/she does not have to enter a value in the text box. I just want to make sure that only required values are entered in the text box. Which means that text box can be left blank if the corresponding combo selection does not require a value in the text box. I hope I am making sense. Please let me know if you are confused?
Thanks,
I have a drop down combo box and a corresponding text field. What I would like to do is to make sure that the text field is not left blank only if a certain selection is made. For example, assume my combo box has the following items:
Apples
Oranges
Mangoes
Bananas
etc
and so, lets say that the user selects Mangoes from the list, I want him/her to enter a corresponding value in the text box for mangoes, which cannot be left blank because the value is required. But if the user selects Apples, then he/she does not have to enter a value in the text box. I just want to make sure that only required values are entered in the text box. Which means that text box can be left blank if the corresponding combo selection does not require a value in the text box. I hope I am making sense. Please let me know if you are confused?
Thanks,