Forum Discussion
Exporting Variables into a Google Spreadsheet
I'm going to speak in non-technical terms because that is what I understand best.
the two things that I want on my spread sheet are 1- students name and 2- students score on the quiz (game)
and possibly 3- how much time it took.
So I have made my spreadsheet and named the columns Student name, students score.
I have also followed the other directions but now my question is-
Where? and at what point? and how do I specify that these are the variables I want to have on the spreadsheet?
Thank you!
Hi Warrin,
Firstly, you need to create variables called 'Student name' and 'students score' in Articulate. Then you create a trigger to execute the the following javascript (replace 'current web app url' with your own url as described in the original method':
var player = GetPlayer();
$.ajax({
url:
"Current web app URL",
type: "POST",
data: {"Student Name": player.GetVar("Student name")
, "students score": player.GetVar("students score")},
success: function(data)
{
console.log(data);
},
error: function(err) {
console.log('Error:', err);
}
});
return false;
Hope that helps?