Javascript - Print custom notes section

Jan 12, 2018

Morning guys,

I'm definitely of the creative ilk, so when it comes to technical things I'm a mess! I'm desperately trying to get two buttons to work;

  • Print notes
  • Email notes

I have my two buttons 'print' and 'email' and my variable 'custom_notes'

But from here I haven't a clue what I'm doing and have tried over and over again to work things out from other posts on here.

The triggers aren't a problem, but the javascript is... this is what I have so far;

Print notes

var player = GetPlayer();

var header = "Your Course Notes~~"
var args =(
"Name:~~" +
player.GetVar("custom_notes") +


var url = ("print.html?=" + header + args);,"_blank","width=800,height=600,menubar=no");


Email Notes.. (dont have a clue what I'm doing here...!?!)

var player = GetPlayer();
var email = player.GetVar("Email_TextEntry");
var name = player.GetVar("Name_TextEntry");
var task = player.GetVar("Task_TextEntry");
var subject = player.GetVar("Task_TextEntry");
var Scenario1_Notes = player.GetVar("Scenario1_Notes");
var emailBody = "Initial thoughts: \n" + "\n" +
player.GetVar("TextEntry2") + "\n" + "\n" +
"Reflection: \n" + "\n" +
player.GetVar("TextEntry3") + "\n";
emailBody = encodeURIComponent(emailBody);
var mailto_link='mailto: '+email+'?subject='+subject+'&body='+emailBody;,'emailWin');


If anyone can help me get this right I'd be eternally grateful!


Be the first to reply

This discussion is closed. You can start a new discussion or contact Articulate Support.