on 02-07-2011 3:15 PM
Hi,
I need to enable a button only if the user enters some data in the input field.
The user must not do any user action except entering the data in the input field.
could any one please help me how to achieve it
Regards
without raising an action or event to the server side it is not possible
so what the closest solution is that bind the enabled property to one attribute in the context of type wdy_boolean.
and then create an action for the action onenter of the eventhanlder and set the attribute to true only when input
field is having some data.
thanks
sarbjeet singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yeah that is the only closest solution.
until unless an event is raised button's property wont change.
so a server round trip is required and for that an action has to be triggred.
if you dont want the user to hit enter and still want the action to be fired then timedtriggred UI can be used.
but this wont be considered a gud approch in that case.
thanks
sarbjeet singh
Hi,
What you are asking is
while entering data on the input field the button should be enabled. As Sarbjeet already pointed out. This is not possible in WDA.
WDA does not have any event to inform the server or client while typing. On_Enter event is the closest but that has been already mentioned. So probably you have to explain to your designer or Customer that WDA does not provide such fancy client events .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.