Rapid authoring tools are challenging and extending their limits on a regular basis.
Follow the steps given below and you too will be able to do it.
Insert a text entry field.
When we insert a text entry field, default variable named “TextEntry” will be created.
Create a numeric variable “CharLength” with 0 as the default value.
Insert a button “Submit”.
Add the following trigger :
var player = GetPlayer();
var count= player.GetVar(“TextEntry”);
var numChars= count.length;
We now need to display the number of characters on the screen. So place the numeric variable “CharLength” between two “%” symbols.
Now publish your file and check the output.
File output before entering any text:
File output after entering some text:
Use this simple 7 step process and help learners count the number of characters they’ve entered in a text field.
Have anything to say? Please do share!