JavaScript won't let me edit case--or possibly something else

Jan 12, 2014

I used the files and JavaScript from this awesome thread:

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 below, the email script, systemDate is lowercase 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 date code, and it'll revert back to systemDate when I close the JS edit window.) Do I have a ghost?  Here's a Screenr (no sound) that shows what's going on. First I unsuccessfully try to change the date generator script, and then I unsuccessfully try to change the email script. ttp://

Or the problem could be something else entirely.

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;,'emailWin');

2 Replies

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