Is there a way to send a string as a SCORM statement in Lectora?

I would like to send a Custom ID whenever an action is selected (ie. Course1Answer1). When looking, I did not see a way to send cmi interaction statements using an action. Is there an action or other option that would allow me to do this?

Discussion (2)

I'm not positive I understand the question, but I think you are wanting to submit the values of the individual variables using CMI interaction statements. There are a couple of ways I think this should work....create a test with 1 question, question is hidden. Then group action gets whatever this string is, then it updates the question answer with a modify variable or change-contents to the string(var) and then submits the test. This should manually write out the interaction.

Some references:

https://scorm.com/scorm-explained/technical-scorm/run-time/run-time-reference/?utm_source=google&utm_medium=natural_search

Here is some JavaScript that was written a few years ago that also might work....

SCORM 1.2:

//get LMS API

var lmsAPI = parent;

//set score; the first number is the score

lmsAPI.SetScore(90, 100, 0);

//set status; possible values: "completed","incomplete", "failed", "passed"

//set status; possible values: "completed","passed", "icomplete", "failed"

SCORM_CallLMSSetValue("cmi.core.lesson_status", "complete");

SCORM 2004:

//get LMS API

var lmsAPI = parent;

//set score; the first number is the score

lmsAPI.SetScore(90, 100, 0);

//set status; possible values: "completed","incomplete", "failed", "passed"

SCORM2004_CallSetValue("cmi.completion_status", "completed");

SCORM2004_CallSetValue("cmi.success_status", "passed");