Forum Discussion
MattLeo-3da086a
8 years agoCommunity Member
SetStatus not working for SCORM 1.2 completion - Storyline 360 HTML5 Output
Hello everyone,
I'm in the process of upgrading some courses to Storyline 360 to utilize the HTML5 improvements. Due to the complexity of certain courses, we've found that the best method of setti...
MattLeo-3da086a
7 years agoCommunity Member
Hi Samantha,
Thanks so much for sharing your solution!
I tried it out, and it wasn't working for me initially in Storyline 360. However, it got me to dig a little deeper and it seems to be working well using the lmsAPI methods instead of the Storyline player.
Here's the version that worked for me with an optional line for tracking score:
//Get LMS API
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);
//Set Completed status
lmsAPI.SetReachedEnd();
//Set Passed status
lmsAPI.SetPassed();
//Set percentile score based on score variable between 0 - 100
lmsAPI.SetScore(score, 100, 0);
Credit for grabbing the right window with the lmsAPI goes to Adam Trosper's posts on this thread.
So far this seems to be working for me in Storyline 360 in both Flash and HTML5 outputs.
Thanks,
Matt