dynamic
Type: objectMethods for working with Items that contain dynamic content.
You would want to use this object and its methods to interact with dynamic content and "Try Again" functionality.
Note This object and its dynamic content methods won't appear if there is no dynamic content set for the Item.
Properties
-
nextAttempt function
Load the next data row from the dynamic content table in the Item and displays it for the learner.
Note This method will load the very first dynamic content entry if it has reached the last index.
itemsApp.assessApp().item('my_item_reference').nextAttempt();
- 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
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. - The
totalAttempts
method, the method used to obtain the total number of attempts for the current dynamic content Item.
-
previousAttempt function
Load the previous data row from the dynamic content table in the Item and displays it for the learner.
Note This method will load the very last dynamic content entry if it has reached the beginning (index 0).
itemsApp.assessApp().item('my_item_reference').previousAttempt();
- 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
currentAttemptIndex
method, the method used to obtain the response index for the current attempt in the dynamic content table. - The
totalAttempts
method, the method used to obtain the total number of attempts for the current dynamic content Item.
-
currentAttemptIndex function
Returns the index of the current attempt in the dynamic content table.
Returns: integerThe response index for the current attempt. This index can be used to check for the appropriate dynamic content response value.
itemsApp.assessApp().item('my_item_reference').currentAttemptIndex();
- 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.
-
totalAttempts function
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".
Returns: integerTotal number of attempts for the specified Item.
itemsApp.assessApp().item('my_item_reference').totalAttempts();
- 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.
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
item()
method, the method used to interact with specific Items in an assessment.