Forum Discussion
AndrewHoskins-e
5 years agoCommunity Member
Custom Quizzes and Scorm
Hi all,
It is my understanding that part of publishing my course to a SCORM package, will allow my LMS to track scores. How do I ensure this is the case if I create custom quiz questions and do n...
Dave-Ruckley
5 years agoCommunity Member
As mentioned by Judy you would need to use some Javascript to send a custom variable to the LMS. This is the code I've used (originally from a community post that I can't find):
var player = GetPlayer();
function findLMSAPI(win) {
if (win.hasOwnProperty("GetStudentID")) return win;
else if (win.parent == win) return null;
else return findLMSAPI(win.parent);
}
var lmsAPI = findLMSAPI(this);
lmsAPI.SetScore(player.GetVar("final_user_score"), 100, 0);
SCORM_CallLMSSetValue("cmi.core.lesson_status", "complete");
final_user_score is the variable I increase or decrease throughout the slides. Yours may be named something different so you'd need to change it in the code.
Related Content
- 5 months ago
- 10 months ago
- 5 months ago