How can I show/hide the input from a password input field?

I am trying to create a show hide function. So the user can view their password as text. Please can anyone advise how to do this?

I have attached an image and the file.


Hello @ em_91
See attached document for the show hide function. You probably have more that you need but it will give you a good idea of other possibilities as this file includes password compliance. Password.rp (113.5 KB)
Hope this helps.