Items API Methods
question()
Returns the interface to a specified Question in the assessment.
You would want to use this method so that you can check whether the Question has been attempted, for example.
Examples
var question = itemsApp.question('my_response_id');
console.log(question);
// Run a method on the Question instance
question.getAttemptedStatus();
Arguments
-
response_id string
The reference ID for the Question instance.
Return value
Type object
Question interface object when found.Related articles
- List of all Question methods
- The
questions()
method, which allows you to retrieve the list of Question references, so that you can access the Question interfaces. - The
feature()
method, which allows you to retrieve the interface for a specific Feature.