Hi -
I guess you could do something around those lines (not tested):
var userNameInput = document.getElementById('userNameInput');
if (userNameInput)
{
// Set the username field to blank
userNameInput.value = '';
}
But you could also use that email address as a alternate logon for the users (as long as we are not talking about Azure AD integration, else there are some caveats), as long as the email address exist in AD (and it could be stored in a customer/different attribute than the actual email address if the "real" one is different), you could use the following: https://learn.microsoft.com/en-us/windows-server/identity/ad-fs/operations/configuring-alternate-login-id.