Forum Discussion
BastiaanTimmer
10 years agoPartner
Articulate Storyline: Export to Google Drive
PREVIEW | SOURCE
On the Articulate user days in Utrecht (2015), we held a session about exporting Articulate Storyline variables to Google Drive (Spreadsheet). This export is achieved via...
BastiaanTimmer
7 years agoPartner
Hi Ryan,
The code below is sending the information to Google:
//Export to Google
$.ajax({
url: WEB_APP_URL,
type: "POST",
data : storyline,
success: function(data)
{
console.log(data);
},
error: function(err) {
console.log('Error:', err);
}
});
return false;
}, 1000);
If you write your code below de line console.log(data); then it should work. This line is exporting the data to the spreadsheet.
Note: All the date is placed in a javascript variable called "storyline". If you want to use the values as seperate values, then you can use the code below:
var date = new Date().toJSON().slice(0,10); //STORE DATE
var name = player.GetVar("name");
var email = player.GetVar("email");
var message = player.GetVar("message");
You can use the values date, name, email and message in your mail script/function.