Forum Discussion
Example files: Generating a certificate from Storyline
Hello,
Forgive me if I am repeating a problem, but could someone check my javascripts below? This is on a slide trigger in Storyline Articulate to execute when the timeline starts.
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
var day = currentTime.getDate();
var year = currentTime.getFullYear();
var dateString=day + "/" + month + "/" + year;
var player = GetPlayer();
player.SetVar("SystemDate",dateString);
I have a print button on my certificate with this trigger-execute javascript when user clicks button
"window.print()"
within the certificate I have name variable which works
%FirstName% %LastName%
and date variable which works
%SystemDate%
The certificate looks fine, the autofills work - it will just NOT PRINT from my print button in the LMS or elsewhere.
Is there a quick fix I am missing???