Forum Discussion
Validating Text Entry Boxes
Hi, just checking to see if validating a letter in a text entry is a feature yet in SL360...I can't seem to find it in v3.20.16814.0. If it's not; then are folks still using Javascript to accomplish this? How would this work? The user enters the text, SL passes it to javascript in a var, javascript checks its validity, then informs storyline yes, correct, take this action/ no, incorrect, try again?
Perhaps I should mention that I'd be using HTML5 output only.
Thanks!
- JamesEifler-b918 years agoCommunity Member
Update, I found out text entry screens in a Try mode demo convert to a question slide and then I can validate text from there. I had missed it.
- AshleyT-Pollard8 years agoStaff
Hi James,
If you're using a standard text entry question type (like a fill in the blank) that'll validate as correct/incorrect based on what you set up in the question.
If you need to do more than that, i.e. restricting the learner to only entering in X number of characters, or only using certain letters that'd be a great use of Javascript. I'll let you in the capable hands of our ELH community - as I wouldn't know where to begin!
Related Content
- 9 months ago
- 7 months ago