Assess API Events
test:submit:error
Fires when there is an error submitting the assessment. This will throw a 10004
error.
You would want to be notified about this event firing, because you might want to show a custom error message for the learner, for example.
Examples
itemsApp.on('test:submit:error', function () {
console.log('This code executes when there is an error with the assessment submission.');
});
Related articles
- The
test:submit
event, the event that occurs when the assessment submission begins. - The
test:submit:success
event, the event that occurs when the assessment was successfully submitted. - The
test:finished:submit
event, the event that occurs when the learner clicks the "Close" button on the outro screen and is redirected to theonsubmit_redirect_url
.