Skip to Content
0
Former Member
Oct 27, 2005 at 05:12 PM

Disabling one input field while entering text in other input field

33 Views

Hi,

I am new to WebDynpro. My problem is very simple. I have two input fields. When i enter text in one input field i want the second input field to be disabled & Vice versa. The idea is that i want to give the user the option to enter text in only 1 input field of his choice. When, he chooses one field, the second input field should automatically get disabled. He can choose only one input field of his choice. The second one should get disabled.

Eg: Assume that there are two input fields "Item No" & "Material". The user should be able to do a search using any one of these parameters, but not both. So, when he chooses to do a search based on "Item No", the "Material" input field should be disabled (greyed out)once he enters text in the "Item No" field. And, vice versa. The choice of field is up to the user.

I guess it is a very elementary doubt. I went through many discussions, but since i am new to WebDynpro, I could not find a 100% satisfactory answer. Would appreciate if some explained the steps right from the beginning, instead of redirecting me to some other discussion. (Please include code as well, if any).

Kindly help.