Forum Discussion
Sending a Numeric Variable to an LMS
Hello, all. I'm a relatively new user to Storyline 360, and so far I've only come up with one situation that I can't get past.
First, the objective is to get the value of a variable ("TotalScore") to be converted into the "Quiz1.ScorePoints" variable so that it will be pushed out to our LMS.
My story is set up as an Action Map where users accumulate points in each of 4 categories based on selections made during the story, and the "TotalScore" variable is the sum of all 4 categories. That means that I don't have these slides set up as quiz slides, they just have buttons on them that activate triggers to add points to the appropriate categories.
Ultimately, I want the "TotalScore" to be the score that is sent to my LMS. It seems like the answer would be to convert the "TotalScore" into the variable "ScorePoints" which would show up on a Results slide, but it seems that this can't be done directly.
I have gone through the second part in this article (Storyline-360-How-to-Send-the-Value-of-a-Variable-to-an-LMS) that uses a Survey Question and a Results slide. I can get the "TotalScore" variable value to replace the value of the "NumericText" variable, but that doesn't get sent to the results slide as a score. Therefore, the results slide isn't receiving any score to send to our LMS. I have not tried the xAPI option because I'm not confident that it would work with our LMS.
Any help would be appreciated!
Steve
Director of Learning and Development
Goodwill Industries of Mississippi
5 Replies
- jenniferfirestoCommunity Member
I'm working on a similar project and when I first tried this, I got stuck on the fourth bullet of step 2, where it directs you to select the variable that you want to report to your LMS, because the variable wasn't available in the list. I realized that the issue was that by selecting a short answer survey question in step 1, that creates a text type variable, while the variable that I want to report to the LMS is a number type variable. I deleted the short answer survey question and instead selected the how many survey question for step 1. Then I continued with the steps and the variable was then available in the list on step 2 4th bullet because they are now the same type of variable. If this is similar to the issue you are experiencing, I recommend trying the different survey question type.
Edited to note: The other response from Nedim reminded me that I forgot to mention that in our case we are not passing the score as a mastery score, we just want to capture it as a survey question result that we can run reports on. Based on our LMS and for this scenario, in addition to the above setting to collect the score as a numerical value, as well as to collect the other survey responses, we used these settings:
- Result slide with 0% for the passing score
- Set Report status to LMS as Passed/Incomplete (our LMS configuration will not complete the course if its set to Complete/Incomplete while tracking is based on a result slide and not slides viewed).
- Published as SCORM 2004
- Once uploaded to the LMS and completed an attempt, ran a SCORM Exam detail report (report specific to SuccessFactors to report question level responses on SCORM 2004 courses)
- 6V is the result of the total number accumulated through a TotalScore variable and populated into the How Many survey question.
- N is blank because we aren't capturing a true score
- O is passed for the entire item because we set the completion as Passed/Incomplete
- W is blank because they were all survey questions, no correct answers.
- smccartneyCommunity Member
Thank you very much, Jennifer. Please see my reply to Nedim for more of an explanation.
Steve
- NedimCommunity Member
Try using a "How Many" survey question, which reports a numeric value to the LMS. I've attached a simple example that demonstrates how this can be done. In the example, I manually assign a numeric value to a variable called totalPoints, then transfer that value to a NumericEntry variable named score. This value is then reported to the LMS through the survey question. If you intend to report totalPoints as the mastery score (within a 0–100 range), that would require a few lines of JavaScript, as it's handled differently by the LMS.
- smccartneyCommunity Member
Jennifer and Nadim, thank you both so much for the quick responses.
Both of you mentioned using the "How Many" survey slide, and that was something that I had already figured out.
What both of you helped me to realize is that the "answer" to the survey question isn't read by the LMS as a score, but it may be sent to the LMS as data that can still be found.
I made one adjustment to the survey slide based on Nadim's example and ran a test through the LMS. I was able to do exactly what Jennifer showed. The survey response was indeed sent to the LMS, but not as a score. It did however, give me the Passed/Incomplete information. I had to click another "details" button, but was able to find the survey response in the LMS data.Ultimately, I'd love to have the survey response show up as a score in the LMS, so if it isn't too much trouble, Nadim, could you share with me what would need to be done with JavaScript in order to send as the score?
Regardless, I am not trapped any more. I have a way to track the data, so I thank you both very, very much!
Steve
- NedimCommunity Member
If you only want to report totalPoints as a score in the LMS using JavaScript, there's no need to use a survey question or result slide. Instead, you can use a blank standard slide, as shown in the attached example. Simply run the JavaScript when the timeline starts on the slide of your choice.
const LMS = parent; const score = getVar('totalPoints'); //assuming totalPoints variable is created in Storyline LMS.SetScore(score, 100, 0);
If you still want to keep the survey response and use it as the reported score, use the updated version of the previous file included here. It includes the necessary JavaScript to set the value as the score in the LMS.