Javascript for Text Entry Box to API for reporting
Would someone be able to advise on writing javascript to report user input text from a text entry box to API for reporting?
Disclaimer: I do no know much about javascript.
What I do know:- I am using SCORM 1.2
- My LMS allows me to call the following API
cmi.comments (SCORM 1.2)
cmi.interactions
cmi.interactions
cmi.objectives
My TEB for my test are creatively named
text_entry_box_1
text_entry_box_2
What I do not know:
How do I send the value entered in text entry box to an API to report on this?
If more than one Text Entry Box, how does this effect the javascript?
Where do I execute the Javascript (upon entering slide, exiting slide, clicking submit button?)
I found something on one of the forums that looked close:
SCORM_CallLMSSetValue('cmi.comments', 'Hello');
To me, this looks like it would set the value of cmi.comments to Hello by default. I would need that to be the value of text_entry_box_1
Any help is appreciated!
