This extension is used in scenarios where you want the user to attempt all questions, and check the answer, prior to navigating to the next question.
Autoscorable questions that have disabled auto scoring will be ignored.
Items API configuration overrides take precedence:
{
"config": {
"questions_api_init_options": {
"attribute_overrides": {
"instant_feedback": false
}
}
}
}
Parameters:
Name | Type | Attributes | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | object | <optional> | Object of configuration options. Properties
|
Example
const options = {
message: {
header: 'Please check your answers',
body: '<p>Before moving on, attempt all questions and click the "Check Answer" button.</p><p>Note: the "Check Answer" button may not appear on every question.</p>'
}
}
LT.init(itemsApp, {
extensions: [
{ id: 'checkAnswerValidation', args: options },
],
});