create password check with triggers and variables in articulate storyline

Aug 08, 2023

Hi I want my user to enter a password and I want the storyline to show if the password meets all the criteria like the length of the password, has one number, one special character, one uppercase and one lowercase alphabet I used triggers, and variables to create the same but it doesn't work it shows the same slide no matter what is the input by the user. please help!

5 Replies
Walt Hamilton

This trigger, and others like it won't work.

If the learner types the actual words "any number" for the password, hasNumber will be set to true, otherwise, it will be set to false.

You need to examine each character the learner types for the password to determine what type of character it is. SL has no option to do that, so you need to use Javascript.

The way you've written the triggers makes me think you have some programming in your background, so I imagine you can probably do it.