cancel
Showing results for 
Search instead for 
Did you mean: 

Validation of input fileds on key pressed

Former Member
0 Kudos

Hi All ,

I am working with WebDynpro Applicaton. I have few input fields , e.g. first name , last name , age.

I want to validate input fields on key event. like if i enter first name and enter tab or click next input filed i want to validate first name input field. is is possible in web dynpro java?

Thanx in advance

Regards

Kavita

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Kavita,

I am not aware of the exact implementation of keyboard buttons like tab..

However each input fiels has a property called onEnter. You can define an action here in which you can do your validation .

This method will be called every time the user hits on enter provided the cursor is in that input field

Regards,

Himanshu

Answers (2)

Answers (2)

Former Member
0 Kudos

Version 7.1 (or 7.11 I don't remember exactly) has added an "onChange" event for input fields which is triggered when the input field is left by pressing the tab key.

Armin

gill367
Active Contributor
0 Kudos

Hi Kavita,

This thing is not possible in web dynpro java.

There is only one event available for input field that is OnEnter (i.e. when you press enter)

So you can validate it only by pressing enter.

Reagrds,

Sarbjeet