Forum Discussion
Mask a Password?
Hi,
I am working on a project that requires a password entry. I would like to set it up so that when the user types in the box, stars or bullets appear instead of letters or numbers.
I have tried at least five different Javascripts and nothing seems to be working. Can someone look at this slide and explain a) what's wrong with my setup and/or b) what code I need?
Note: I got rid of the code I had to help someone look at it from scratch.
5 Replies
- JudyNolletSuper Hero
There have been multiple posts about this topic. The simplest solution is to use a "password" font that displays as the same character (for example * or • ) no matter what is typed.
I don't know a specific font to suggest, but if you search the community (or just google it), you should be able to find one.
As JudyNollet stated, there are many posts about this, some good, some not so good. I encourage you to search the community and find an approach that best fits your scenario.
In the meantime, please see the attached file and check whether it’s useful for you. It’s something I’ve used once or twice, and it’s worked well for me. It uses repeated * characters (asterisks) for the visible password field, while a separate variable stores and validates the actual password text. Based on the validated value, the Sign In button is unlocked and the course advances to the next slide.
It should be easy to adjust to suit your needs.
- JudyNolletSuper Hero
Hi, Nedim! I don't see any file attached to your post.
Thank you JudyNollet! I attached it just now.
Related Content
- 1 year ago
- 2 months ago
- 8 months ago
- 8 months ago