Login custom javascript toLowerCase() doesnt work on sandbox.

Hi all, in the login.html of my Mendix-project I wrote a custom onChange-action. This seems to be the only way to change the login input to lowercase. It works, but only when I run the application local. In the sandbox the onChange does not work out. Does anybody know how to solve this problem? And why does it work only locally and not on the sandbox? Below a snippet of my code. Thanks a lot, Evert-Jan van den Broek
1 answers

Hi Evert-Jan,

Instead of editing the index.html directly,  you could create a custom login page, and use a login entity to collect the username/password. Then you can just change the data to lowercase in a nanoflow when you sign the user in. Like in this example: