Items API Events
item:setAttemptedResponse
Fires when a learner has entered a response into a Question within an Item.
You would want to be notified about this event firing so that you can execute additional code based on the response content of an Item (in other words, whether the learner has made an attempt or not).
Examples
itemsApp.on('item:setAttemptedResponse', function () {
console.log('This code executes when the learner has entered a response in a Question in this Item.');
});
Related articles
- The
getResponse()
public method, which you can use to get the response content for a specific Question.