Preparing Articulate Storyline to automatically mark unit complete

Articulate storyline has a functionality using which Javascript can be embedded in Articulate storyline packages. Using this functionality Articulate storylines can be easily integrated in WPLMS units and automatically mark units complete when the articulate storyline is finished.

This tip shows how to create a custom Articulate storyline and ADD custom javascript to trigger the Unit Complete link and automatically mark the unit complete with a Articulate storyline action.

1. Locate the Articulate Action element

2. Enable the Javascript Action trigger in settings

3. Add the javascript :

Code:
var mark_complete = window.parent.document.getElementById('mark-complete');
  if (mark_complete.onclick) {
       mark_complete.onclick();
  } else if (mark_complete.click) {
       mark_complete.click();
    }

 

4. Publish the Articulate storyline for Web.