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

User entered Text Entry Box contents to SCORM cmi.comments in LMS

Participant ,
Dec 20, 2016 Dec 20, 2016

I need to report some user entered text to my LMS. Essentially, these will be open ended questions about experiences that we want the user to type in their own words. There will not be any validation to the text box. It will be completely open ended. However, we want to view their entry in a report from the LMS.

I have been struggling with this for a couple of weeks now. I feel like i am close to finding a solution but do not have one yet.

I applied this Javascript to a button on the page:

SCORM_CallLMSSetValue('cmi.comments', 'box1');

Results:

I was able to return a value in cmi.comments when running my report in the LMS - the value was box1

I call this a win since I was finally able to get something to report!

Now, the next step would be to get the value of box1 (the text that the user has input) to report instead of the name of the variable.
This seems like it should not be that difficult, but I am not a programmer and I am having a hard time finding a resolution for this instance.

426
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
Explorer ,
Jan 05, 2017 Jan 05, 2017

Same question here + a little extra

What if the learner has more than one text entry box? How to append it to the existing content in cmi.comments?

/Jacob

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
Participant ,
Jan 05, 2017 Jan 05, 2017
LATEST

Essentially the values will all show in cmi.comments in a string. I have the separated by a / so it is easier to read.

Someone was able to help me out with the javascript on this thread.

https://forums.adobe.com/thread/1660294

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