Access to Storyline quiz results in an LMS

Feb 16, 2015

Hi,

I'm building a custom LMS using PHP/jquery.

Part of the LMS features quizzes created in Articulate Storyline 2.

I need to know how to access the quiz results from Storyline within our application. I understand this can be done using JavaScript but nobody has been able to provide a working example. I contacted Articulate customer support who suggested I post in here.

This is what I've tried so far:

1. Added a slide for the results: Insert > New Slide > Quizzing > Blank Results Slide
2. Click on the slide. Click Create New Trigger.
3. This opens the Trigger Wizard. The details we added here are shown
on the attachment screenshot.
4. In “On Condition:” add the following:
• Variable: Results.ScorePercent
• Is greater than or equal to
• Variable: Results.PassPercent
5. Click OK; Save and export the quiz as normal.

What I expected to happen:

We've added a variable called "quizres". This should be accessible when the conditions are met (if the user passes). In JavaScript I've tried the following:

alert(player.GetVar("quizres"));

and also:

var player = GetPlayer();
var score = player.GetVar("quizres");
alert(score);

Neither of these display anything. 

I've been pointed in the direction of SCORM solutions before. The LMS we have is *not* built to be SCORM compliant, so these solutions are not appropriate for us.

I've seen that when files are exported from Storyline there are a bunch of js files within the exported directory. I would imagine these contain variables that can be referenced but so far have been unable to do it.

If anyone could help I would appreciate this.

Be the first to reply

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