validateQuestions - Methods - Items API

Items API Methods

validateQuestions()

Displays the correct and incorrect status for all auto-scorable responses.

You would want to use this method so that learners can see which Questions they have answered correctly or incorrectly with visual icons.

Examples

// Standard usage
itemsApp.validateQuestions();

// Validate and reveal correct answers
var validationOptions = {
    showCorrectAnswers: true
};
itemsApp.validateQuestions(validationOptions);

Arguments

  • validationOptions object

    • showCorrectAnswers boolean

      Render and reveal the correct answer for all auto-scorable Questions.

      Default: false

Return value

None (undefined).

Related articles

  • The getScores() method, the method used to get the scores for all auto-scorable Questions in the assessment.
  • The getItemScores() method, the method used to get the scores for all auto-scorable Items in the assessment.
  • The resetValidationUI() Question specific method, the method used to reset the validation UI for an individual Question.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.