Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Getting Comments from LMS

Engaged ,
May 08, 2018 May 08, 2018

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

08-05-2018 12-12-45.png

TOPICS
Advanced
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
May 08, 2018 May 08, 2018

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);

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
May 08, 2018 May 08, 2018
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources