Community

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
william_creger
New Member

Storyline Custom Score to Canvas Grade book?

Jump to solution

So I have read numerous posts on the Storyline site on how to create a JavaScript trigger to send a custom scoreto an LMS but am still struggling (after many days).

To  begin with "baby steps", I create a one slide project. Place a button on it and set a trigger to execute the following JavaScript when clicked...

//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(70, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"
SetStatus("completed")

I then added a second button to exit course.

When publishing to Canvas, set Scorm to 1.2 (for Canvas) and tracking to slides.

Published, uploaded as graded assignment to Canvas and tested.

Rather then recording a score of 70% (or 70 points if setting the assignment grading to "points") it always defaults to 100%. I am assuming this is happening because it is registering the 1 out of 1 slides I have viewed (slide tracking) rather than taking the custom score of a 70 out of 100. I have tested the script in Scorm Cloud and it does work.

Any ideas on what may be the problem or what adjustments I need to make to the JavaScript to push the custom score to Canvas?

Thanks!

Bill Creger

1 Solution

Accepted Solutions
Stef_retired
Community Team
Community Team

 @william_creger ​, inasmuch as this is a duplicate post of Custom Score to Canvas via JavaScript , and in the interest of conserving the energies and efforts of Community members, we're going to ask everyone to direct their responses to that thread, which has been shared to the Canvas Developers​ group on your behalf. We're locking this one for additional participation.

View solution in original post

1 Reply
Stef_retired
Community Team
Community Team

 @william_creger ​, inasmuch as this is a duplicate post of Custom Score to Canvas via JavaScript , and in the interest of conserving the energies and efforts of Community members, we're going to ask everyone to direct their responses to that thread, which has been shared to the Canvas Developers​ group on your behalf. We're locking this one for additional participation.