Is it possible when creating SCORM packages to insert a link into the package at design time which would have it's url built up from values in the runtime, cmi.core.student_id for example? Or any other custom values only known at runtime?
Asked
Active
Viewed 52 times
1 Answers
0
Yes, assuming you are able to write Javascript into the content and have it manipulate the DOM at runtime.
SCORM has an API you can access with Javascript in your content. You would get the API reference, then make the call to LMSGetValue('cmi.core.student_id'), then build the URL and put it on the page by adding it to the DOM. See: SO answer here for more info.
There's some references here at ADL.
You can find some SCORM 1.2 Wrappers out there, which are JS files that connect to the SCORM API for you and give you functions to talk to the API. They aren't absolutely necessary but they are helpful.

tom creighton
- 477
- 4
- 10
-
Yeah thanks Tom that's the way I was heading, unfortunately it appears we can't write Javascript in the content with our authoring tool. – Gary F Apr 24 '23 at 15:26
-
Hmm.. some tools do give you a set of variables you can use in your content but I'm out of my expertise at this point. I wish you the best of luck. – tom creighton Apr 24 '23 at 17:44