Help!!! Creating a Password Field

Hello, I have made several attempts at this I think I now have myself all confused. I have a main slide where I want a proctor to type in their password. They are provied three attempts. After each attempt I want the "submit" button to inform proctor they have two-one more attempt. If after unsuccessful attempts, I want them to end up on a slide that will provide them with instructions. If they are successful, I want them to land on a slide that will have instructions. I have all the slides created, but I am struggleing with how to set three attempts.

Sara

50 Replies
Russell Still

Create a numeric variable called (for example) "tries". Initial value is 0.

Each time Submit button is clicked check for valid password, check to see if "tries" is equal to 3, and increment tries by 1. To do this will require three triggers.

First trigger tests for a valid password. If true it branches away and the rest are not executed.

Second, create a trigger for the Submit button for "when clicked". The trigger action would be to "jump to slide" (your instructions slide) if  "tries" variable is greater than or equal to 3.

Next trigger for the Submit button "when clicked". The trigger action would be to "adjust variable". This is where you increment "tries".

Jesse Spinella

My question is, why make it a limit? There's an easier way to do this, and its just to set the initial state of the Proceed button to hidden. Then, you don't have to set a limit and it'll only change the state of the Proceed button to Normal if the proctor enters the correct password. You can bypass the variables portion of this and make less work for yourself.

Check this out...

Jesse Spinella

This is actually not to difficult to set up... I followed Doug's advice and made the text entry box text color the same as the text entry field's background color. Then, using a separate text box, I overlaid a bunch of asterisks ontop of the box and set it to hidden. Then, it turns on with the trigger: change state of Text box 2 ***** to Normal when the control loses focus (on the text entry field).

You can play with the timing of this, and if you want to make it complicated, add some states to the ***** text box to increase or decrease based on how many letters the person is putting in. But I just kept this version simple.

Take a look:

Tim Abel

I found a possible solution to this problem.  Download a font in which all characters are asterisks (or something similar).  I used a free font on Dafont.com called Rosette. Just install the font and assign it to the text entry field that gathers your password.  When the user types, they will only see the asterisks (or some semblance thereof), but Storyline will still recognize and treat the characters as the appropriate letters.  This particular font doesn't include symbols for numbers or caps.  You might have to search a little harder to find a font that exhaustively replaces all possible characters with asterisk-like symbols. 

Bill Harnage

I don't want to rain on anyone's parade, but make sure you test it on a machine that does not have the font installed.

Input fields are dynamic, so to say.  Once published they will default to a standard web font if the font is not installed.  The only way I've found to mimic a password field is similar to what Jesse suggests.

If you've used Flash you know you can embed fonts for special formatting.  Not so with SL and it would be nice to have a check box to make an input box a password field similar to Flash.

Lisa Ward

Bill Harnage said:

I don't want to rain on anyone's parade, but make sure you test it on a machine that does not have the font installed.

Input fields are dynamic, so to say.  Once published they will default to a standard web font if the font is not installed.  The only way I've found to mimic a password field is similar to what Jesse suggests.

If you've used Flash you know you can embed fonts for special formatting.  Not so with SL and it would be nice to have a check box to make an input box a password field similar to Flash.


I just ran into this problem.  The password is "bulleted" out as it should be when I run it from both my Desktop and on the lms; however, my users see the actual characters/keystrokes that they type for the same file on the same lms.

Is there no workaround for this??  My program is about to be released, and we just discovered this!

Ashley Terwilliger

Hi Lisa, 

As Bill mentioned, if the user's computer doesn't have the font installed it may not display as expected in a text entry.  Did you try the method mentioned by Jesse earlier in this thread?

Jesse Spinella said:

This is actually not to difficult to set up... I followed Doug's advice and made the text entry box text color the same as the text entry field's background color. Then, using a separate text box, I overlaid a bunch of asterisks ontop of the box and set it to hidden. Then, it turns on with the trigger: change state of Text box 2 ***** to Normal when the control loses focus (on the text entry field).

You can play with the timing of this, and if you want to make it complicated, add some states to the ***** text box to increase or decrease based on how many letters the person is putting in. But I just kept this version simple.

Take a look: