Extensions/Assessment/checkAnswerValidation

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:
NameTypeAttributesDescription
optionsobject<optional>

Object of configuration options.

Properties
NameTypeAttributesDescription
message.headerstring<optional>

The header text for the message dialog.

message.bodystring<optional>

The body text for the message dialog.

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 },
    ],
});