Forum Discussion
DorothyStark
12 years agoCommunity Member
exporting variables to be read in a Google docs spreadsheet
I've seen Tom's helpful screencast on how to embed a Google docs form into a Storyline project. However, what I want to do is a little different. I'd like to be able to export the values of about...
ainemeehan1
11 years agoCommunity Member
I feel so stupid re this. Would someone be kind enough to check my code. This is literally all I have in the execute javascript area. I have two text input boxes for a name and student id. The trigger is that when the next button is clicked the javascript is executed. I have tested the entry.37118808 numbers in a web page and it works. I also have the jquery part in the story.html file. I'm just missing something obvious. I think I will be learning javascript :)
I would really appreciate any help,
p.s. I more or less copied Jedidiah's code, so thanks for that Jedidiah.
thanks,
aine
var player = GetPlayer();
$.ajax({
url: "https://docs.google.com/forms/d/1MjBkCNiANT18g9X-CyXoCoP58KkynJusV47ETBNwAp4/formResponse",
type: "POST",
data: {"entry.239328797" :player.GetVar("StudentName100"), "entry.37118808":player.GetVar("IDNumber100")},
success: function(data)
{
alert(data);
}
});