Skip to main content

We have built a course in Articulate Storyline with five quizzes. The number of quizzes taken by the learner depends on which pathway they take through the course - i.e. they are not mandatory. Therefore, we need to report an average score for only the quizzes taken by the learner. 

To do this, we implemented the following JavaScript, executed as the learner exits the course:

----------

var p = GetPlayer();

 

var q1 = p.GetVar("Quiz1Percent");

 

var q2 = p.GetVar("Quiz2Percent");

 

var q3 = p.GetVar("Quiz3Percent");

 

var q4 = p.GetVar("Quiz4Percent");

 

var q5 = p.GetVar("Quiz5Percent");

 

var numberOfQuizes = p.GetVar("NumberOfQuizes");

 

var currentScorePercent = p.GetVar("CurrentScorePercent");

 

var sum = q1 + q2 + q3 + q4 + q5;

 

var currentScorePercent = Math.round(sum / numberOfQuizes);

 

p.SetVar("CurrentScorePercent", currentScorePercent);

 

lmsAPI.SCORM_SetScore(currentScorePercent, 0, 0);

----------

 

We tested this in SCORMCloud (SCORM 1.2) and it works absolutely fine. However, when the course is uploaded to Docebo, no completion or score is reported. Does anyone know why this might be?

@trouk Have you tried it with other Scorm versions, such as 2004, v3?


@KMallette Yes, I’ve tried with the other Scorm versions, but no luck I’m afraid. As far as I can tell, this is an issue with Docebo itself.


Reply