In an eLearning course, you can let your learners complete a short “essay type” activity at the end of the training, and let them know the number of words they’ve entered in the text field.
For example, if the learner has to write approx. 150 words for a particular answer and falls short of the required word count, there will a prompt asking the learner to continue writing.
In a new slide, insert a Data Entry field to enter text.
(Insert a Controls a Data Entry a Text entry field)
Enlarge the text entry field to type the text in a paragraph format. If the learner is required to enter a minimum or maximum number of words, a word counter can help meet this requirement.
Step2: Now we have to create 2 variables; Wordcount, a text variable and Counted, a numeric variable.
var player = GetPlayer();
var content = player.GetVar(“Wordcount”);
var matches = content.match(/\S+\s*/g);
var numWords = matches !== null ? matches.length : 0;
This is an easy way to let your learner know the number of words he has entered.
In my next, blog we will see how to count the characters in Articulate Storyline. See you soon!
Subscribe to Our Blogs
Get CommLab's latest eLearning articles straight to your inbox. Enter your email address below: