Forums

Show password partly

NJM 09 Dec, 2015
Hi,

I was wondering whether it is possible to show the password partly. So that, if you type your password, you can see some of the letters (the last one you typed for example). In addition, is it possible to have some kind of option (it mostly is an eye-icon) so that if you click on the icon, you can see the password entirely.

Thanks for feedback...
Kind regards!
GreyHead 09 Dec, 2015
Hi noeljm,

I Googled around and found a few possibilities, this one look simple and seems to do what you need. Download the file, unzip it and copy the password.js file to a new /components/com_chronoforms5/extras/password_showhide/ folder on your site.

In your form add a Load JavaScript action to the form OnLoad event and drag it up before the HTML (Render form) action. Open the action for editing and add the full url of the password.js file to the JS Files box. In the JS Code box add code like this:
jQuery(document).ready(function(jQ) {
  jQ('#password1').password();
});
Replace password1 with the ID of your password box.

Test. You should see an input with an icon next to it which when clicked will display the password text.

There are other plug-ins that do something more like the iPhone method of showing one the last character briefly. You can try those in a similar way.

Bob
This topic is locked and no more replies can be posted.