totalAttempts()
Counts the total number of dynamic content attempts for the current Item.
Used with the "Try Again" functionality, this is the number of times the learner has clicked "Try Again".
Examples
itemsApp.assessApp().item('my_item_reference').totalAttempts();
Arguments
None.
Return value
integerTotal number of attempts for the specified Item.
Related articles
- Using Dynamic Content and "Try Again" in Your Assessments
- The
dynamic_items
initialization option, which can be used to configure dynamic content. - The
dynamic
object, the object used to access methods related to dynamic content Items. - The
nextAttempt
method, the method used to load the next row in dynamic content Items. - The
previousAttempt
method, the method used to load the previous row in dynamic content Items. - The
currentAttemptIndex
method, the method used to obtain the response index for the current attempt in the dynamic content table.