Hello community,
Whenever the password is send to a user, user have to manually type the password to login into Maximo. Sometimes due to especial character the user types wrong password (client have non English keyboard) and gets wrong password error.
Is there any way we can append a copy password button in the communication template we send so that when user receives an email, they can just click on the button to copy the password and login?
Once they have entered it and login for the first time, it will ask them to change the password.
I have tried the below in the communication template.
<p id="copy">password</p><div><button onclick="copyPassword('copy')">Copy Password</button></div>
<script>
function copyPassword(id)
{
var str = document.getElementById(id);
window.getSelection().selectAllChildren(str);
document.execCommand("Copy")
}
</script>
The button gets created and is also present in the email sent but when we click on it, the password is not copied.
I also checked that once the communication template is saved, the script tag disappears.
Have someone worked on it before and knows how this can be achieved?
Thanks in advance :)
------------------------------
SHASHANK .
------------------------------
#AssetandFacilitiesManagement#Maximo