Items API Events
dynamic:item:changed
Fires when a dynamic Item is changed.
You would want to be notified about this event firing, because you want to know when a learner has re-attempted the Item.
Examples
itemsApp.on('dynamic:item:changed', function (reference, attemptIndex) {
console.log('This code executes when the dynamic Item has changed.');
});
Callback arguments
-
reference string
The id of the row being rendered in this attempt.
-
attemptIndex integer
The zero-based index representing the number of attempts made.