Adding a trigger to user.js after publishing.
Aug 04, 2016
Hi all, we have just implemented a new LMS (Brightspace by D2L) and all of a sudden a bunch of our SCORM packages are not tracking completion.
Brightspace does not seem to care about completion based on slide view, and only cares about a grade. Our other LMSs will take completion and assign a grade to it if we want.
Anyway, through some searching around on the forums I was able to accomplish what we wanted by adding a trigger to the last slide that sent completion and a score through javascript:
//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(100, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"
SetStatus("completed");
However, we have a couple hundred of these storyline packages, and I am wondering if it is possible to add this trigger to fire on the last slide without having to republish every one of them? Or, if there is another way to accomplish this with just modifying the published files vs having to go back into storyline and republihs/reupload.
Thank you all in advance for your help.
Roman
3 Replies
Hi, Roman -- Welcome to the community, and many thanks for your question here! Unfortunately, I am not able to provide support for JavaScript, so I'll need to defer to your fellow community members to assist you further. And in case you wanted to check it out, here is our JavaScript Best Practices and Examples sheet.
Hi Christie, thanks for the welcome and the link, I have already taken a look at it and it was very helpful with some other questions. I hope that someone in the community can guide me in the right direction :)
Thanks for the reply, its pretty much what I thought, and your last idea is most likely exactly what we are going to do. Get an internet, let them republish the courses :)
This discussion is closed. You can start a new discussion or contact Articulate Support.