item.warningOnChange - Events - Assess API

Assess API Events

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?

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