Forum Discussion
Course completion with a code block?
Thanks John_Reddinger !
We are considering this. It would require authors to add the same code snippet we'll be providing to integrate code blocks with continue blocks. Then selecting something like "Track using Code block" in your export settings.
Thoughts on that approach?
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