Custom Login page - login on Enter

0
Hello there,   We are using a custom login page. After typing username and password, user is not able to log in simply by pressing enter, instead he must click the sign in button. We want to have the possibility of signing in by pressing enter for user experience. Is there some known solution to this? We are using studio pro 9.12.8
asked
1 answers
1

Hi Matus,

 

Call a nanoflow in on key press event in that check the enter key is pressed using java script action if so perform your login activity else stop the flow.

 

var code = (e.keyCode ? e.keyCode : e.which);
if(code == 13) { //Enter keycode
    return true;
}

else

    return false;

answered