Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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.