This is a lower-level API. Lower-level APIs are not recommended for most projects, and may not be available on all plans. See our page on recommended deployment patterns for more information.
Event Assess API

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?