test.finished.save - Events - Items API

Items API Events

test:finished:save

Fires when an assessment is finished and has successfully been saved. The learner will then be redirected to the onsave_redirect_url, if provided in the configuration options.

You would want to be notified about this event firing so that you can display a save message to the learner before the redirect occurs, for example.

Examples

itemsApp.on('test:finished:save', function () {
    console.log('This code executes when the assessment has been successfully saved but before a redirect occurs.');
});

Related articles

  • The test:save:success event, which fires when the assessment is successfully saved at any point during the assessment. This is different from test:finished:save as it does not redirect the learner after saving.
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.