How to build a "Password tester" exercise

Aug 11, 2017

Hi all! I'm trying to work through the logic of potentially building an interactive exercise but it's the end of the week and my brain is fried so I was hoping to source your collective geniuses :)

All of this is theoretical, I'm drawing things out by hand, playing with how it might work in Storyline. All suggestions and ideas are welcome! I don't even know if this is possible.

I want to build an activity where users get to test the strength of made up passwords. If its over a certain length, if it has Capital and lower case letters, if it has numbers and symbols.... so if they typed in something like "thisismypassword" then it wouldnt pass because it doesn't use symbols, numbers and upper case. But if they typed ThisIsMyPa55w0rd! then that would pass. 

Is there a way to do conditions based on the text entry variable without being SPECIFIC about the text entry variable? (I.e. without specifying a specific value for what the text entry should be but rather characteristics about the text entry)

1 Reply
Allison Goldthorpe

Hi Ashley,

You'd have to use JavaScript to do something like that. The good news is someone already did it, so you can just borrow their code. Here's an article about JavaScript best practices. You'd either want the JavaScript to execute when the text box loses focus, or when the user clicks a submit button, so be sure to check your trigger that executes it. Let me know if you run into any issues!

Allison

This discussion is closed. You can start a new discussion or contact Articulate Support.