Copy link to clipboard
Copied
Hi there,
Thanks to some good posts here I managed to get learner comments from LMS with a SCORM 2004 piece.
I have two TEBs and two respective variables. This is the code I use
var myVar_01 = window.cpAPIInterface.getVariableValue("varTEB_01");
var myVar_02 = window.cpAPIInterface.getVariableValue("varTEB_02");
SCORM2004_CallSetValue('cmi.comments_from_learner.0.comment', myVar_01);
SCORM2004_CallSetValue('cmi.comments_from_learner.1.ccomment', myVar_02);
So I get the comments in a console and also they are shown on the results slide of our LMS.
Here is the screenshot of the metrics that are shown after the user closes the SCORM.
Normally, if there are no comments there is no Comment entry. Now that there are some comments, I can see also the actual comments.
So far so good.
My question is. Is there a way to change the titles of the comments (in red in the image)?
It may be something from the LMS, but maybe not...
Thanks in advance.
B
Copy link to clipboard
Copied
That looks like something in your LMS, so I wouldn't think you can change it.
If this is just an HTML5 course, your script is overkill since the variable are available in the window, so you could just use:
SCORM2004_CallSetValue('cmi.comments_from_learner.0.comment', window.varTEB_01);
SCORM2004_CallSetValue('cmi.comments_from_learner.1.ccomment', window.varTEB_02);
Copy link to clipboard
Copied
Thanks for the reply and the hints! I publish only HTML5.
I believe I should have a look with the LMS guys about the Comment title.