Forum Discussion

SuvinV-7855fa96's avatar
SuvinV-7855fa96
Community Member
7 months ago

Scorm slide progress percentage to LMS

Hi, I'm looking for a solution to track/pass slide by slide progress percentage to an LMS.
Please help me with this and share if there is any Java script available for this.
*Note: I'm not a js expert :)

Thanks.

  • Hi Suvin, the progress is available via a variable in Storyline "Project.Progress". This will provide the percent of the module complete based on Slides Viewed and Total Slides.

    Which API are you using to pass that percentage progress to the LMS, SCORM 1.2 or SCORM 2004? 

  • Hi Suvin,

    You would need to pass the data to the SCORM 2004 data model element called cmi.progress_measure. You need to be aware that this accepts a value between 0 and 1. 0 being 0% completed and 1 being 100% completed and 0.5 being 50% completed (assuming a completion threshold hasn't been set.)

    What you first need to do in Storyline, is assign the Project.Progress variable to a user defined variable, for example "ProgressMeasure". Make this a number type variable. You should then set a trigger on your Master Template as follows:

    You then need to send this value to the LMS. I think the safest way to do this, is on timeline start again. This will be using JavaScript and Storylines build in LMS Set function as follows:

    // Get the player object
    var player = GetPlayer();
    // Get the variable from Storyline
    var ProgressMeasure = player.GetVar('ProgressMeasure');
    // Change to value between 0 and 1
    ProgressMeasure = (ProgressMeasure / 100);
    // Send to the LMS
    SCORM2004_SetProgressMeasure(ProgressMeasure)

    Publish to SCORM 2004 and that should work.

    Some friendly feedback for you. For future posts on the forum, I highly recommend first having a go at some kind of solution your self, or at least sharing any research you have done, as it can sometimes come across that posters haven't attempted a solution and look for a solution handed to them on a platter. 

    You'll learn the software a lot quicker through trying things and researching on the forums. I understand that this is a more complex one, but even finding the Storyline progress variables would have demonstrated some effort to find the solution.

    • CristinaZaplana's avatar
      CristinaZaplana
      Community Member

      Hi SAM, 

      This operational can be applied in Scorm 1.2? And Where i can insert this JavaScrip to be read by Moodle Plattform?. I try to insert in the Slide master but I can not know if this will work. In other hand, i configured already a progress bar in a Slide collection but it isn´t connect with LMS its only to preview the progress in the slide collection. 

      can you give me your feedback?

      Regards. 

      Cristina.

  • Hi Cristina, I'm afraid this SCORM 2004 only. SCORM 1.2 does not provide this field or any other to track a percentage complete.