Forum Discussion
SomannaGadipell
5 months agoCommunity Member
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 re...
ShamsShimul
5 months agoCommunity 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.
Related Content
- 9 months ago