Copy link to clipboard
Copied
I use a close button in the last slide that recall the function DoCPExit() to close the course. This method works correctly when the course is open by browser desktop, but if the course is open by the docebo app or by ipad, the app or safari crashes.
The function DoCPExit() in the file Utilities.js has been modified by adding:
if(SCORM2004_objAPI){SCORM2004_CallTerminate();}
if(SCORM_objAPI){SCORM_CallLMSFinish();}
But this change does not seem to make improvements. Has anyone ever had to deal with captivate and docebo or has any ideas for a close button in html5?
Copy link to clipboard
Copied
I believe your issue is that that function exists multiple times in the HTML5 output with the last in the CPM.js which overrides the others.
Try just executing your JavaScript in the JS window attached to your button:
if(SCORM2004_objAPI){SCORM2004_CallTerminate();}
if(SCORM_objAPI){SCORM_CallLMSFinish();}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now