How to determine LMS status Complete on the basis of user score (Custom Scoring)

Jul 06, 2018

I have used the custom score variable and wanted to set LMS status as complete on the basis of the user score. However, the completion status is being determined based on slides viewed. For example, If I have scored below 75% and attempted all the questions, the LMS status should be incomplete and failed, but it is reflecting as complete.

I have used following js code on the last screen:

var player=GetPlayer();
var cScore=player.GetVar("FinalScore");

var lmsAPI = parent;
lmsAPI.SetScore(cScore, 100, 0);

if (cScore>=75)
{
SetStatus("completed");
}
else
{
SetStatus("incomplete");
}

Please help me to sort out this problem ASAP as an important project delivery of mine depends on this.

14 Replies
Colleen Liley

Matt Kurtin says -

Last line needs to me modified  if using Storyline 3.10 (and likely in later versions too) becasue SetStatus is no longer defined.

var lmsAPI = parent;
lmsAPI.SetScore(100, 100, 0);
lmsAPI.SetPassed();

See link:https://community.articulate.com/discussions/articulate-storyline/storyline-set-lms-status-with-javascript?page=3

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