Javascript trigger doesn't do anything
Aug 21, 2013
Hi folks,
As our LMS have the difficulty to receive the completion status "passed", I am trying to set the status of my course to "passed" via a javascript trigger placed on a button.
I tested several codes on the result slide and on a very last slide after the result slide, as proposed from some users. Nothing happens. I pulled the codes from the forum here and tested them in scorm.cloud with the debug log enabled. No communication at all when I click the buttons. My course is published for LMS with the tracking option "by result slide".
My buttons have the follwoing codes:
Button1: Button2 var player = GetPlayer(); var lmsAPI = parent; lmsAPI.SetScore(player.GetVar("Results_2.ScorePercent"), 100, 0); SetStatus("passed") Button 3 SetPassed(); CommitData(); Button4 SCORM_CallLMSSetValue ("cmi.core.lesson_status", "passed"); SCORM_CallLMSCommit(); Am I doing something wrong? Is there some essential lines missing in my code? Or do I even need to enable the javascript funtiponality somehow when I publish it? Thanks a lot for your support. Arthur
SetStatus("passed")
1 Reply
Hi Arthur! Articulate does not support JavaScript, but there are several individuals in the forums that may be able to assist you. Good luck with your project and just let us know if you need anything further.
This discussion is closed. You can start a new discussion or contact Articulate Support.