#ELHChallenge 395 – Certificate of Completion Template

What’s the point of completing a course if you don’t have a nice certificate as proof of your accomplishments? This week’s ELH Challenge was to create a certificate of completion template.
In addition to just creating a certificate template, I set the following goals for my project. I wanted the certificate to:
- allow the user to type their name directly on the certificate,
- auto-fill the current date, and
- have a print button that opened the print command but wouldn’t appear on the print screen.
While the first goal was easy enough, the other two required a bit of research because I hadn’t done work like that in Storyline360 before.
To auto-fill the current date, I used JavaScript code that I learned from Devlin Peck’s post on generating a PDF certificate from an eLearning course. I had to create the variable and insert the trigger that ran the JavaScript as soon as the slide began and that inserted the current date.
For the print button, I created a separate layer that appeared when the text entry lost focus (meaning the user clicked outside of the text entry box). When the user then clicked on the print button, that layer would disappear and the print screen would appear. I had a lot of fun picking up this challenge series again!