validate()
Validate the current response for the question instance.
Arguments
-
options object
-
showCorrectAnswers booleanWhen
true
, correct answers will be displayed with the validation UI.Default:
false
-
showDistractorRationale boolean | DistractorRationaleOptions
Determines whether distractor rationale are displayed with the validation UI.
When omitted, the
show_distractor_rationale
configuration from the Initialization object will be used in its place. -
feedbackAttempts booleanWhen
true
, this will incrementfeedbackAttemptCount
or do nothing if thefeedbackAttemptCount
limit has already been reached.Default:
false
-
Return value
None (undefined
).