Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

submitting form after hitting enter key

$
0
0

Hi,

 

In my application I have login page with two PasswordField controlls and login button, which look similar to form.

 

Currently i'm sending data after user press a Login button, but i want to allow user to be able to send form also by pressing enter (like regular form in html).

 

I know change event is triggered after hitting enter but I'm currently using change event to check if value of fields meets criteria (4-12 length, no slashes, quotes), and if not show appropriate error window. I don't know any way to distinguish when change event is fired after control lost focus and when by pressing enter.

 

Also I'm using MVC which holds me back to insert this form in plain html using sap.ui.core.HTML. (I've binded values to controller).

 

Thanks in advance,


Viewing all articles
Browse latest Browse all 6178

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>