Items API Methods
item()
Returns the interface to a specified Item in the assessment.
You would want to use this method to interact with dynamic content and "Try Again" functionality. This method also provides access to methods for Events API which can be used for later reporting purposes.
Note The dynamic content methods won't appear if there is no dynamic content set for the Item.
Examples
var item = itemsApp.item('my_item_reference');
console.log(item);
Arguments
-
itemReference string
Reference of the Item you want to access.
Return value
Type object
Item interface object when found. See Item interface methods for more information.Type boolean
Returnsfalse
if the Item is not found in the assessment.
Related articles
- Using Dynamic Content and "Try Again" in Your Assessments
- Events API documentation
- The
item
interface which contains methods for working with specific Items.