Submitting a Variable number to the LMS

Mar 26, 2018

Hi all,

I have been advised it is possible to submit a numerical variable i have created to the LMS but i am unsure on how to do this?

At the end of this particular course, the user will take 1 of the 2 quiz's i have setup depending on the path they choose. However to track this i have to create a master results slide that tracks both quizzes meaning the user can only get 50% as the top score. I have my own variable which will double the users score so it is accurate and instead of publishing the standard results variable i want to publish my variable as the result.

Can this be done? 

p.s. i am working in Storyline 2

7 Replies
Adam Meek

Hi Matthew

I have tried the above and tested on our LMS and it doesn't seem to work.

All i have tweaked is passing score to 85 and the variable to say FinalPercent

var player = GetPlayer();
var passingScore = "85";
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("FinalPercent"), 100, 0);
if (player.GetVar("FinalPercent")>= passingScore)
{
SetStatus("passed");
} else {
SetStatus("failed");
}

 

This discussion is closed. You can start a new discussion or contact Articulate Support.