Text Entry - Detecting Characteristics of What is Entered

Sep 28, 2017

Hello all,

 

Is it possible in Storyline 360 to place a text entry box onto a slide, and set up variables that change depending what is in the box.

 

For example: Can a variable be set up that changes from a false state to a true state if 8 or more characters are typed into the text entry box, but remains false if 7 or less characters are in the box?

6 Replies
Sam Barnard

Thank you for your reply :)

Basically I want to demonstrate password security to learners. so the idea was to give them a text box to type a word into (doesn't matter what) and then for a bunch of variables to be updated based on what's been entered into the text box (i.e. 8 characters minimum, uses both alphanumeric and non-alphanumeric, upper and lower case).

If there was a way to do this in Storyline (even if you have to click outside the box so it loses focus to change variables and such) that would be most preferable.

I'll have a look at the tutorial you posted but I must confess I've never written JavaScript myself.

Sam Barnard

So I'm doing a project that encompasses a few things and one those is IT Security. Now this is for internal use only and the idea being to just have a new starter induction course for those new to the company. I've gone through various bits already and I'm writing it and as I was going through some common practices for keeping computers relatively secure, I wrote the bit on passwords and considerations of what to avoid and some recognised good practice.

I thought, if I could make this a bit more interactive it would help with learner engagement. So providing them a box that they could literally type whatever word they want into a box and then have some variables change depending on what's typed into the box.

The requirements of the box would be:

  1. it must be 8 characters minimum
  2. it must contain at least one non-alphanumeric character
  3. it must contain a minimum of one alpha and one numerical character.
  4. It must contain at least one lower and upper case letter

There would then be a tick that would appear for each one depending on what was in the box.

So if someone typed a 5 letter word that was all lower case but also included numbers and one non-alphanumeric character then they would see a tick appear by the second and third requirements. and a cross by 1 and 4. It's just to illustrate and for them to experiment with some good practices for passwords.

If possible it would be nice to have the "Next" button of the player become active only after all 4 requirements have been met, but I have no problem with settling without it.

Sam Barnard

Hi Matthew,

I know this thread is relatively old as is the topic, but I've finally gotten around to using the password checker and script that you kindly provided me on a live project, however, there is one issue it's experiencing.

When a password is entered into the text field and the "Check password" button is clicked, it checks the password as you would expect. However, if you then change the content of what's in the text field, it seems to remove characteristics that may have been met on the first attempt and this continues until it no longer flags any characteristics that have been met.

Effectively, it seems the script is either not running correctly, or the variables are not being updated and fed into the script. I've tried a reset button to force the screen to revert to it's initial state but this doesn't solve the described problem.

Do you happen to have any suggestions? I've attached the screen in question (albeit without the reset button).

Kind regards,

Sam

Sam Barnard

Thank you for your response! I appreciate the effort and help.

The only issue we're experiencing with it now, I don't know if this is something to do with our LMS - Moodle, browser or whether there's something to do with Java involved in this (as I mentioned before, I am not experienced with Java).

It is now not updating the met requirements if you're value in the text field changes. If you manage to meet all six requirements, this is registered as you would expect. However, if you then edit what is in the text field to something that doesn't meet them, and then click "Check Password", it doesn't update the requirements to reflect this.

Do you know why that might be?

Kind regards,

Sam

Sam Barnard

Hi Matthew,

I've had a bit of a fiddle with it and it's now working as intended. Really haven't a clue what was happening, perhaps something went a bit funny during publishing.

It's working now so thank you very, very much for your help and writing the Java script! :) It's the icing on the cake for this particular little module.

Sam

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