Copy link to clipboard
Copied
Hi there
I've been trying and searching for a while but cannot find a good solution allthough the problem seams quite easy:
I want the user to answer a question with freetext. He should be able to change this text when he visits the page a second time. The text should be reported to the LMS, however now grading is necessary.
Is there a possibility to get the text entered in a learning interaction "scrolling text" to be reported to the LMS?
I've created a branched scenario where the learner can take several attempts. At the end I want the learner to write a short summary of what he has learned and I want this to be reported to my LMS. It does not need to be graded. Here's what I've tried:
Here's what I'm using:
Captivate 9
Scorm 2004
LMS: ILIAS Version 5.1
Thanks a lot in advance.
Stefan
You should be able to record the text using the following function call:
SCORM2004_RecordInteraction(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, intWeighting, intLatency, strLearningObjectiveID, dtmTime, SCORM2004InteractionType)
What ever variable you assign (I used myText) to the scrolling text would be populated in the strResponse argument. So on slide Exit you could execute the JavaScript:
SCORM2004_RecordInteraction("Student Response", myText, true, 0, 0, 0, 0, 0, Date(
...Copy link to clipboard
Copied
You should be able to record the text using the following function call:
SCORM2004_RecordInteraction(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, intWeighting, intLatency, strLearningObjectiveID, dtmTime, SCORM2004InteractionType)
What ever variable you assign (I used myText) to the scrolling text would be populated in the strResponse argument. So on slide Exit you could execute the JavaScript:
SCORM2004_RecordInteraction("Student Response", myText, true, 0, 0, 0, 0, 0, Date(), "SCORM2004_INTERACTION_TYPE_LONG_FILL_IN");
Haven't tested this so you may have to play around with the entries, but should work in theory.
Copy link to clipboard
Copied
Hi
Thanks for your fast reply.
Unfortunately I'm not such an advanced user. I understand where to enter the variable to the scrolling text and the JavaScript on slide Exit.
But where do I put this part?
SCORM2004_RecordInteraction(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, intWeighting, intLatency, strLearningObjectiveID, dtmTime, SCORM2004InteractionType)
Thanks
Stefan
Copy link to clipboard
Copied
You would execute JavaScript onExit action in the slide properties. If it is HTML5 it will always fire. I guess it doesn't with swf.
Copy link to clipboard
Copied
Hi
Unfortunately I'm not that familiar with JavaScript. What I did was
Enter the Variable
myText into the widget (see step 1 in the attached picture
entered following script on exit of the slide (step 2 in the attached picture)
SCORM2004_RecordInteraction("Student Response", myText, true, 0, 0, 0, 0, 0, Date(), "SCORM2004_INTERACTION_TYPE_LONG_FILL_IN");
SCORM2004_RecordInteraction(strID, strResponse, blnCorrect, strCorrectResponse, strDescription, intWeighting, intLatency, strLearningObjectiveID, dtmTime, SCORM2004InteractionType)
Is some syntax wrong?...sorry I'm really just a beginner and have little idea of JS.
Thanks for your help
Stefan
Copy link to clipboard
Copied
I cannot help you with JS, would just have tested the LMS to see if user variables are reported (some do have that functionality).
However I want to remind you that a user variable is not created automatically because you enter it in the variable field of a learning interaction (widget). You have to create that variable with Project, Variables as well. One of the tips in these posts:
Copy link to clipboard
Copied
Hi Lieve
Thanks. I'll try that. First attempts look promising.
Best regards
Stefan
Copy link to clipboard
Copied
Hi Lieve
Unfortunately it didn't work out yet. I'm still trying to find out if it is just me, or if the LMS doesn't allow user variables being reported.
Would you have another Idea on how I could achieve my main-problem:
- Get Freetext created by the learner to the LMS
- He should be able to change this text on a second attempt.
I don't know - maybe this should be possible with the official short-answer quiz-questions!? but I was unsuccessfull so far with different tests...;-(
Thanks and best regards
Stefan
Copy link to clipboard
Copied
You only need:
SCORM2004_RecordInteraction("Student Response", myText, true, 0, 0, 0, 0, 0, Date(), "SCORM2004_INTERACTION_TYPE_LONG_FILL_IN");
You also need to create the myText variable under Project/Variables. If you just assign it in the Interaction, it won't do anything until the variable is created.
Copy link to clipboard
Copied
I think your solution works (i've tested it with scorm cloud) however I believe my LMS does not accept user created variables.
Thats what I'm trying to find out currently.
Or am I getting something wrong?
Copy link to clipboard
Copied
If it works in SCORM Cloud, perhaps your LMS doesn't handle the interaction data, which would be a crime.
The LMS would know if you are passing variables into the arguments of a function.