Forum Discussion
Multiple Text Entry Quiz Question
Hi Gordon,
While I cannot think of all the answers, I try to make the questions specific enough to limit the terminology they may use. I have the learners keep it to one or two word answers or business terms. Also I use this for questions that involve math calculations so I do not have to give them options to chose from.
I am using a javascript that removes spaces, commas, apostrophes, and sometimes periods if it is not a number answer. Fortunately articulate lets you disregard capitals when comparing answers.
//Prep to get variables
GetPlayer();
// Get variables from storylline
var Swapper1 = player.GetVar("varfromarticulate");
//Remove Spaces
Swapper1 = Swapper1.replaceAll(/[ _',]/g, "");
// set variable
player.SetVar("varfromarticulate", Swapper1);
Also I create a variable that is a copy/backup of the original learner input and then after the response I use the copy to restore the input variable so the learner can view their own input in the feedback if they answer was incorrect.
Clever. I need to learn javascript.
Related Content
- 10 years ago
- 9 months ago
- 10 months ago