Custome Score Variable
Nov 20, 2015
By
David Page
Hi,
The contest: we have a first slide where we determine 3 profiles.
Each profile branch to a specific range of questions.
And I need to send the score of the range to the LMS.
How: after doing any range, I have 1 result slide for each range. We pass through them and send the result to a forth result slide. On this one a use some js to calculate the score using the number of question in the specific range :
var player = GetPlayer();
var numberofquestion = player.GetVar("numberset");
var runningscore = player.GetVar("score");
var calculatescore = (runningscore/10)*(100/numberofquestion);
player.SetVar("score",calculatescore);
Now I need to set Results.ScorePoint as the score variable or send the score var instead the Resul.ScorePoint to the LMS.
Any idea how I can manage this?
David.
2 Replies
You cannot set the built-in Results variables (they are read-only), so you need to report a custom variable to the LMS instead. Here is some info on how to do this: https://community.articulate.com/discussions/building-better-courses/variables-to-lms-can-you-share-your-examples
Hi, Page -- In addition to the info Michael shared with you, I also thought I would share the JS Best Practices info in case you would like to have it handy. :)
This discussion is closed. You can start a new discussion or contact Articulate Support.