Minimum number of characters required

Nov 20, 2019

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. 

 

 

8 Replies
Math Notermans

V Raja's solution requires jQuery. Any Javascript code you see with $ signs in it are using jQuery. And as jQuery is not included anymore in Storyline it wont work as is.

To convert jQuery code to Vanilla Javascript ( Vanilla as it doesnot require any 3rd party libraries like jQuery ) you can use this link.
https://tobiasahlin.com/blog/move-from-jquery-to-vanilla-javascript/