Picture of aaron quinn
assessmentResults - infinite attempts until passing score
by aaron quinn - Tuesday, 3 January 2017, 9:06 PM
 

this modification to the assessmentResults component prevents a user from retaking the assessment once a passing score has been achieved. be sure to comment out the existing code just like in the images.

 

modify this file: /adapt_framework/src/components/adapt-contrib-assessmentResults/js/adapt-contrib-assessmentResults.js

 

1. change the value for isComplete (check if the assessment is passed instead of completed)

prevent retake 1

 

2. allow completion of the component only if the assessment is passed

prevent retake 2

 

3. show the retry button until the assessment has been passed

prevent retake 3

 

4. allow infinite attempts in the extension settings

prevent retake 4

 

cheers!