Forum Discussion
Limited Attempts Issue in Canvas LMS
In the 25+ years I've been working with various LMS', I haven't run into a case where the LMS doesn't record the last score sent, regardless if it's higher or lower than the previously-recorded score. That's why, using the authoring tools I've used during the same timeframe, I've had a course retrieve the recorded score at launch, and then at the end, compare it to the current score. If the current score is higher, I've had the course update the LMS with the new score. If not, the course did not update the LMS, preserving the previously-recorded score.
The relevant JavaScript functions in Storyline are:
SCORM 1.2
GetScore();
SetScore(intScore, intMaxScore, intMinScore);
SCORM 2004:
SCORM_GetScore();
SCORM_SetScore(intScore, intMaxScore, intMinScore);
The SetScore functions call the SCORM data elements:
cmi.score.raw (cmi.core.score.raw) -- Learner's score
cmi.score.max (cmi.core.score.max) -- Maximum possible score, typically 100
cmi.score.min (cmi.core.score.min) -- Minimum possible score, typically 0
The editable scormdriver.js file, which is inside of the lms folder in your ZIPped course file, includes this variable:
var SCORE_CAN_ONLY_IMPROVE = false;
//set this to true to ensure that on subsequent attempts, a learner's score can only go up
If I'm reading the documentation right, changing that value from false to true should replace the need to code JavaScript in Storyline to retrieve, compare, and then update the learner's score on the LMS if it's higher than the last-recorded score.
Related Content
- 10 years ago
- 6 months ago
- 16 days ago