Forum Discussion
John_Reddinger
10 months agoCommunity Member
Course completion with a code block?
Hi all!
I know that unlocking a continue button with the code block is in the works -- but how about sending course completion?
I attempted to add the script below to a button in my custom code b...
ChloeArntzenAU
1 day agoNew to the Community
I know this is an old thread... but with the enhancements that have been made over time to the code block it would be AMAZING to be able to have it as an option for tracking course completion.
Having to add Storyline blocks as well adds more maintenance than necessary to the course.
AndrewBlemings-
1 day agoCommunity Member
If you're comfortable with code blocks, it is possible to use the function call John_Reddinger​ provided. The SCORM API lives "higher up" than the code block so we just have to prepend the call like so:
window.top.SCORM2004_CallSetValue('cmi.completion_status', 'completed');
I just made a quick Rise course with a code block that calls the above function when a button in the code block is clicked, and SCORM cloud registered the completion no problem.
Related Content
- 9 months ago
- 10 months ago
- 3 months ago
- 5 months ago