Validating a text field

Jan 21, 2014

Here is a question/challenge for the community

Is there a way in storyline to create a user entered text field that would validate against the following critera?

Passwords Must Have:

  •  Between 8 and 16 characters
  • At least 1 upper case letter
  • At least 1 lower case letter
  • At least 1 number
  • At least 1 special character/symbol

Thanks in advance for all the suggestions.

r.e.

5 Replies
david mckisick

Where there is a will, there is a way with Storyline. I recently did something like this with a Certification Test I developed for a Client. Simply setup a text field and then setup a blank variable to "hold" the value that is typed in. Then setup a trigger, or set of triggers to "check" the values entered, along with a series of Layers. I had to create a series of Trigger Conditions to make it all work right.

Michael Hinze

I agree with Phil, JavaScript is the way to go here. A while back, I had done an example that uses the match() method to check a Storyline text entry for keywords, like 'good', 'creative', 'awesome'; see here: http://dev.keypointlearn.com/xcl71_SL/TEBContains/ . You can this method and other methods and properties, like Length to build your validation.

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