Forum Discussion

SomannaGadipell's avatar
SomannaGadipell
Community Member
25 days ago

Request to Display "Unknown" Status Instead of "Failed" for Learner Outcomes

We are using Storyline 360 to deliver e-learning content via our LMS. Currently, when a learner completes the course and fails the quiz, the LMS reports the status as "Failed". However, our client requires that in such cases, the course should return "Unknown" instead of "Failed" as the final status.

Could you please advise how this behavior can be achieved in Storyline 360, possibly through SCORM settings or JavaScript customization? We are primarily using SCORM 2004 as the reporting standard.

Looking forward to your guidance.

3 Replies

  • Hello SomannaGadipell

    I see that you've opened a support case and that you're working with my colleague Ian. You're in excellent hands!

    We'll continue the conversation over in your case. 

    Have a great start to your day! 

  • Nedim's avatar
    Nedim
    Community Member

    Have you considered using the Passed/Incomplete reporting setting?  If a learner fails the quiz and no success status is explicitly reported, the LMS may display the success status as 'unknown'.

     

  • ShamsShimul's avatar
    ShamsShimul
    Community Member

    You'll need to set up a JavaScript trigger on the final slide with the appropriate conditions and the following piece of JS code:

    var nFindAPITries = 0;
    var API = null;
    var maxTries = 500;
    
    function ScanForAPI(win) {
      while (win.API_1484_11 == null && win.parent != null && win.parent != win) {
        nFindAPITries++;
        if (nFindAPITries > maxTries) {
          return null;
        }
        win = win.parent;
      }
      return win.API_1484_11;
    }
    
    function GetAPI(win) {
      if (win.parent != null && win.parent != win) {
        API = ScanForAPI(win.parent);
      }
      if (API == null && win.opener != null) {
        API = ScanForAPI(win.opener);
      }
    }
    
    var lmsAPI = GetAPI(this);
    
    lmsAPI.SCORM2004_CallSetValue("cmi.completion_status", SCORM2004_UNKNOWN);

    To learn more about the SCORM runtime and the API, follow this link:

    SCORM Run-Time Environment: Explanation and Examples | SCORM.com
    At the bottom of the page, you'll find additional resources about the data model implemented by the different versions of the SCORM API.