Passing Variables to LMS from Storyline
Sep 29, 2014
By
Orla Clarke
Help please !!!!
I have a variable to write back to the LMS - it is a culmination of points from correct answers to questions PLUS bonus points. On the last slide of my elearn, I want to write it to the LMS - I have tried the suggestion of putting in a short form survey question and passing the variable that way but it doesn't work for me (either the slide won't advance to the results slide or the short question survey slide needs to be visited before I can see the variable).
Any ideas?
Thanks,
Orla
17 Replies
Hello Orla,
This tutorial is really nice because it includes a video. If you watch the video you'll see how to get the slide to advance, and this method has worked well for me - http://www.articulate.com/support/storyline/how-to-send-the-value-of-a-variable-to-an-lms
This is a good supplementary tutorial, and I like the additional screenshots it provides - http://www.articulate.com/support/storyline-2/reporting-articulate-storyline-variables-to-an-lms-sl2
Thank you Brian - I had looked at this before but tried again and managed to get it to work. Now my issue is how do I "convert" my variable into what Cornerstone wants to see as the "score".... can you help?
Thanks,
Orla
This should let you pass the score to your LMS
http://community.articulate.com/forums/p/15896/91252.aspx#91252
Phil, thanks for sharing this - will be adding this to my SL javascript library
Thanks Phil - this can go anywhere near the end is that right? and it just has to be in a trigger on a slide as an "Execute Javascript"?
Cheers,
Orla
So I think I was missing a line in the Javascript so as not to need a submit button....
My score is contained in my own variable LearningPoints, which I didn't think I needed to declare within the Javascript. I will be able to track so much more now ! Let the fun begin....
Thanks Guys
//let's grab the variable first -- here I'm just grabbing it from an entry field
var player=GetPlayer();
var LearningPoints=player.GetVar("LearningPoints");
//We're going to leverage the published output method to update status from Flash
//The delimiters need to be setup just like this to jam in the array
//first argument is status: complete
//second argument is score
//third and fourth are min / max
//fifth is passing score
//sixth is type
onBWEvent("BW_UpdateStatus","complete|~|"+LearningPoints+"|~|0|~|100|~|80|~|quiz");
Awesome! I'm sure you've already thought of this, but if you don't want a submit button to be tied to executing the javascript, it's easy enough to do by setting it to trigger at the beginning of the timeline of a slide or off screen object. I use this method all the time to execute this kind of stuff without requiring the user to click an extra button.
Thanks Brian - yep this is what I did in the end !!
Thanks, this is very helpful. A lot of BranchTrack users embed scenarios on slides and want them to be submitted to LMS, preferrably as final score, not just interactions.
Hi,
This post is 3 years old, but I can't find something more recent. I'm using Articulate 360, Do you think those methods work for that version?
Thanks!
Hi, Gen! In the event you do not hear back from Brian, I just wanted to note that you are welcome to reach out to him directly by clicking on the Contact Me link on his profile page ☺️
Sorry all, I've not used any of these methods recently enough to confirm that they still work with Articulate 360, but hopefully someone on this thread or here in the community can jump in and help.
I use this
var player = GetPlayer();
/*get LMS API*/
var lmsAPI = parent;
/*set score; the first number is the score - 100=maxscore*/ lmsAPI.SetScore(player.GetVar("ResultsScorePercent"), 100, 0);
SetStatus("completed")
Thanks for popping in to share what works well for you George.
Hello Heroes,
I have a question along the same lines here, and I was wondering if anyone knows of a way to send the results of an Essay survey question to the LMS using a JS trigger?
Thanks!
Hi Julia,
It doesn't involve Javascript, but have you looked at the method here to send the value of a variable to an LMS?
Hi Ashley, I'm sorry I didn't see your reply earlier. Yes, I have tried that, thank you. It works great out of Storyline, but I can't get it to work in a Rise file. I've been trying to "hack" a long essay out of Rise, but I don't think it's going to work.
This discussion is closed. You can start a new discussion or contact Articulate Support.