cancel
Showing results for 
Search instead for 
Did you mean: 

Enable Button if the user enters data in a input field

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

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

Former Member
0 Kudos

hi,

I have done the same way. But the user needs to hit ENTER button to enable the button.

Thanks for the response.

gill367
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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 .

Former Member
0 Kudos

Hi Guys.....

Thanks for your Answers.....