Items API Events
test:finished:discard
In the context of a supervised assessment, this event fires when a proctor has exited and discarded the assessment. The learner will then be redirected to a ondiscard_redirect_url
, if provided in the configuration options.
You would want to be notified about this event firing so that you can display an exit message to the learner before the redirect occurs, for example.
Examples
itemsApp.on('test:finished:discard', function () {
console.log('This code executes when the proctor has exited and discarded the assessment.');
});
Related articles
- The
test:proctor:exitAndSubmit
event, the event that occurs when an assessment is exited and submitted by a proctor. - The
test:proctor:terminated
event, the event that occurs when a proctor terminates an assessment.