๐Ÿค” How to make a hide / show password button

Kevin:
:thinking_face: Do we have any option or ways to make the password entry unobscured when an user is setting up the account? I have a client where their users are quite seniors so more technology or keyboard challenged. Being able to see what they are typing helps.


Christina Saran:
Hey Kevin, just to clarify is what youre looking for like the eye icon that reveals the password?


Kevin:
Bingo. Yes. :+1:


Christina Saran:
Basically you will want to toggle the type from password (which obscures) to text. Here is a w3 example of the javascript code.
You will need to create a namedAction, https://www.w3schools.com/howto/howto_js_toggle_password.asp
Hope this helps!


Delfs:
The other option is to just use a regular input fieldโ€™s vs the password one


Kevin:
Thanks guys. Made it work using ideas from both of you. Thought I share here in case others are looking for it

image

image


Christina Saran:
thats a great solution thanks for sharing!