currentAttemptIndex()
Returns the index of the current attempt in the dynamic content table.
Examples
itemsApp.assessApp().item('my_item_reference').currentAttemptIndex();
Arguments
None.
Return value
integerThe response index for the current attempt. This index can be used to check for the appropriate dynamic content response value.
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
totalAttempts
method, the method used to obtain the total number of attempts for the current dynamic content Item.