communicating scorm data to google docs?
Hello
I am currently using Captivate 9 and I am wanting to get the SCORM Data in my published project to communicate to a google form so I can easily collect data. A friend of mine, who uses Articulate, has sent me the Java Script over that he uses and I have tried to recreate it in captivate.
Here is the script I am using:
var player = GetPlayer();
$.ajax({
url: "https://docs.google.com/forms/d/1MoKIpyIMjfJdb9zKs3BdY2HRvjjzdcKcJky_KtfaZl8/formResponse",
type: "POST",
data: {"entry.1690054005" :player.GetVar("cpQuizInfoStudentName"), "entry.611090497":player.GetVar("cpQuizInfoStudentID"), "entry.1316822733" :player.GetVar("cpInfoCurrentDateStringDDMMYYYY"), "entry.1402162927" :player.GetVar("cpInfoElapsedTimeMS"), "entry.618856082" :player.GetVar("cpInfoLastVisitedSlide"), "entry.193520631" :player.GetVar("cpInfoPercentage"),"entry.991115191" :player.GetVar("cpQuizInfoAttempts"), "entry.250243260" :player.GetVar("cpQuizInfoPassFail"), "entry.1161631701" :player.GetVar("cpQuizInfoTotalCorrectAnswers"), "entry.1109168399" :player.GetVar("cpQuizInfoTotalQuestionsPerProject"), "entry.1991159250" :player.GetVar("cpQuizInfoTotalUnansweredQuestions")},
success: function(data)
{
//alert(data);
}
});
return false;
and I have this executed on entry of my quiz results slide, so in theory the google form should update each time somebody completes the quiz, see below:
Finally, when I publish the package (unzipped) I add in a final piece of script into the index.html file:
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
I have tried numerous times to upload the package to the LMS system (we use ItsLearning) and have it set to SCORM API communication.
However, each time the data will not pull through and the form remains empty:
I have spoken to guy who gave me the original code and he thinks I may have to duplicate the default variables incase the form doesn't recognize it. (apparently this is an issues in storyline) however I have no idea how to go about this?
Can anybody help me or guide me in the right direction.
thanks
Gary
