How to bind the sign in button with the enter key?

2
On the login page of my mendix application I would like to be able to hit the enter key after entering username/password to log in. Now I have to click the sign in button. Does anyone have an idea how to do that?
asked
2 answers
3

See forum post: https://forum.mendix.com/link/questions/86572

The easiest way is to insert a HTMLSnippet, give the signin button class signin and use a little jQuery :

$(".otp input").keyup(function(event) {
    if (event.keyCode === 13) {
        $(".signin").click();
    }
});

 

answered
1

Allow anonymous users, create a custom sign-in page and replace the default sign-in widget with a call nanoflow button that triggers on-enter. Use the sign-in action from the nanoflow commons module to sign the user into your app.

answered