For text entry, is there a way (maybe with Javascript) to make a user enter a minimum number of characters before they can move on? To prevent them from typing in one character just to click next.
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.
And just for fun, I thought I'd see how many characters I could drop in a text entry field before the browser started to become unresponsive. Was impressed:
4 Replies
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:
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.
And just for fun, I thought I'd see how many characters I could drop in a text entry field before the browser started to become unresponsive. Was impressed:
For Text Area:
$('textarea').attr("maxlength",10)
For Input:
$('input').attr("maxlength",10)
This is for Set Maximum Characters Length.