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

item:warningOnChange

This event fires when a learner attempts to leave an Item that is unattempted or only partially attempted. This only applies when the warning_on_change option is enabled in the items navigation.

You would want to be notified about this event firing so that you can execute additional code to display a custom modal to tell the learner that the attempt for the Item is not complete, for example.

Examples

itemsApp.on('item:warningOnChange', function () {
    console.log('This code executes when the learner attempts to leave an Item that has not been completed.');
});

Related articles

Was this article helpful?