Forum Discussion
TimNeill
10 years agoCommunity Member
Setting 'Results.ScorePoints' to equal my custom score variable
This subject seems to have been discussed for several years (which suggests a SL improvement is needed ...) but I would appreciate some guidance.
I will have 10 custom quiz questions which can't ...
ShailendraKu342
8 years agoCommunity Member
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.
Related Content
- 10 months ago
- 10 months ago