Javascript not working

Oct 12, 2017

I know Articulate doesn't provide JS support, but I know there are JS gurus out there.  I am trying to use JS for a basic date and time.  I am using the traditional JS:

var currentTime = new Date()
var month = currentTime.getMonth() + 1
var day = currentTime.getDate()
var year = currentTime.getFullYear()
var dateString=month + "/" + day + "/" + year
var player = GetPlayer();
player.SetVar("SystemDate",dateString);

 

I set it up as an execute Javascript when timeline starts.  I have done this a hundred times in Storyline 2.  In this new program in 360, the text box where I put the variable SystemDate is empty.  I appreciate your help!

3 Replies

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