I need to create a standalone quiz where I need to capture user information like name and email. The user then goes through an assessment and I need to capture the score too. All this information I need to write to a text file and store it on the PC. I tried using javascript but could not find a solution.
var subject="the part of your slide you want to make the printing mail";
var usernotes=player.GetVar("notes");
var exercisenotes1=player.GetVar("Thoughts1"); var exercisenotes2=player.GetVar("Thoughts2"); var exercisenotes3=player.GetVar("Thoughts3");
var mailto_link='mailto:'+useremail+'?subject='+subject+'&body='+"Activity Notes - My result of part one:%0d%0A"+exercisenotes1+"%0d%0A%0d%0AActivity Notes - Situations I would report to explain a part of dificult answer:%0d%0A"+exercisenotes2+"%0d%0A%0d%0AActivity Notes - Examples situation of interest in a free question:%0d%0A"+exercisenotes3+"%0d%0A%0d%0AGeneral Notes:%0d%0A"+usernotes;
win=window.open(mailto_link,'emailWin');
me be you will make a new text project where i can help you more
2 Replies
var player = GetPlayer();
var useremail=player.GetVar("email");
var subject="the part of your slide you want to make the printing mail";
var usernotes=player.GetVar("notes");
var exercisenotes1=player.GetVar("Thoughts1");
var exercisenotes2=player.GetVar("Thoughts2");
var exercisenotes3=player.GetVar("Thoughts3");
var mailto_link='mailto:'+useremail+'?subject='+subject+'&body='+"Activity Notes - My result of part one:%0d%0A"+exercisenotes1+"%0d%0A%0d%0AActivity Notes - Situations I would report to explain a part of dificult answer:%0d%0A"+exercisenotes2+"%0d%0A%0d%0AActivity Notes - Examples situation of interest in a free question:%0d%0A"+exercisenotes3+"%0d%0A%0d%0AGeneral Notes:%0d%0A"+usernotes;
win=window.open(mailto_link,'emailWin');
me be you will make a new text project where i can help you more
This post about JavaScript Best Practices includes an example for writing Storyline variables to a text file: http://www.articulate.com/support/storyline/javascript-best-practices-and-examples
This discussion is closed. You can start a new discussion or contact Articulate Support.