Hello Storyline community, I am unable to track my custom score on LMS. Need your help. I have created a quiz course in storyline 360, with a custom score variable - "TotalScore". I published it in SCORM 2004 version edition 3. I tried tracking the score through javascript, it did not work. I would appreciate any help on how to track the storyline file score variable on LMS. My maximum score is 300, is that a problem?
While I'm not sure about the course's current setup, there are a couple of ways to pass a variable to the LMS. This is one method to report variables to your LMS here:
//***this will grab a score variable and check that value against a passing score var player=GetPlayer(); var cScore=player.GetVar("OverallPercentage"); var ScoreLMS=cScore.toFixed(2); if(ScoreLMS>75){ SetStatus("completed"); } lmsAPI.SetScore(ScoreLMS, 100, 0);
and it worked partially, I mean when I got 50% score then it registered to LMS but in the second attempt when I got 80% it didn't register it and even the success status remained failed?
Thanks for following up! While we can't provide support using Javascript, hopefully someone in the community will be able to chime in with some help on what you're experiencing.
You can also feel free to reach out in that discussion or contact Michael directly by clicking on his profile.
4 Replies
Hi Shilpi,
Happy to help!
While I'm not sure about the course's current setup, there are a couple of ways to pass a variable to the LMS. This is one method to report variables to your LMS here:
Another idea was from the community using JavaScript. You can find more details about that workflow here:
Please let us know if you have any questions! We are happy to help!
Hi Vincent,
I tried 2 option
//***this will grab a score variable and check that value against a passing score
var player=GetPlayer();
var cScore=player.GetVar("OverallPercentage");
var ScoreLMS=cScore.toFixed(2);
if(ScoreLMS>75){
SetStatus("completed");
}
lmsAPI.SetScore(ScoreLMS, 100, 0);
and it worked partially, I mean when I got 50% score then it registered to LMS but in the second attempt when I got 80% it didn't register it and even the success status remained failed?
when it's more than 75 then it's not changing the status or nor recording the score
Hi Shilpi,
Thanks for following up! While we can't provide support using Javascript, hopefully someone in the community will be able to chime in with some help on what you're experiencing.
You can also feel free to reach out in that discussion or contact Michael directly by clicking on his profile.
This discussion is closed. You can start a new discussion or contact Articulate Support.