Java Script to trigger completion
Apr 19, 2019
Good Morning,
I am trying to add Java Script to a course in Storyline. The purpose is to add a trigger to the first slide of the course which takes a user with accessibility issues to the last slide to download a 508 compliant version of the course from a link which should then trigger a completion for the user. The course does not have a test, so I am trying to find Java Script that would give a general completion. The Java code I have tried is more for a course with a test so it gives a score. Here is what I have used:
//get LMS API
var lmsAPI = parent;
//set score; the first number is the score
lmsAPI.SetScore(100, 100, 0);
//set status; possible values: "completed","incomplete", "failed", "passed"
SetStatus("completed")
3 Replies
Hi Ruth,
If you're using Storyline 360, perhaps the "Complete Course" trigger will accomplish what you need without resorting to JavaScript:
https://articulate.com/support/article/storyline-360-course-completion-trigger
Out of curisoity why not just make the whole course 508 compliant?
Although this isn't a JavaScript solution, the following might work for what you're trying to accomplish:
https://articulate.com/support/article/reporting-storyline-variables-to-an-lms
Although written for Storyline 1, it works in all versions.
FYI - There is also the same article for Storyline 2 but it seems to be showing the same thing:
https://articulate.com/support/article/reporting-articulate-storyline-variables-to-an-lms-sl2
This discussion is closed. You can start a new discussion or contact Articulate Support.