4 Replies
Matthew Bibby

Yes, JavaScript can be used to check how many characters have been typed in a text entry field. Something like this should do the trick:

var player = GetPlayer();
var length = player.GetVar("TextEntry").length;
player.SetVar("Length",length);

Here is a demo that shows the above in action.

And here is the SL360 file used to create that demo.

Unfortunately, due to Storyline limitations, the text isn't stored until after the user clicks away from the text entry field, which means we can't simply enable the next button when the minimum number of characters have been reached. 

So that's annoying.

Thankfully there are ways to work around this. 

See here if publishing to HTML5, or here if still using HTML5/Flash.