Forum Discussion

StefanieKirs743's avatar
StefanieKirs743
Community Member
1 day ago

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

  • Nedim's avatar
    Nedim
    Community Member

    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.

  • 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.