Forum Discussion
User notes that they can print and email
Can anyone help me with some coding? I'm trying to get the date to appear in the email, but I keep getting a null value. I am a novice on JavaScript, so any help would be appreciated. I suspect it has something to do with the case-- in this script the case for systemDate is as so, but on the script to generate the date it's "SystemDate". However, whenever I try to change either one, I'll close the JS edit window and it won't save my JS edit (meaning, I'll change the systemDate below to SystemDate to match what's in the other code, and it'll revert back to systemDate when I close the JS edit window.) Do I have a ghost?
var player = GetPlayer();
var email=player.GetVar("email");
var subject="Educator Effectiveness Step 2 Completed";
var name=player.GetVar("name");
var date=player.GetVar("systemDate");
var mailto_link='mailto:'+email+'?subject='+subject+'&body='+name+" has completed the Educator Effectiveness Step 2 online module on "+date;
win=window.open(mailto_link,'emailWin');