Print a certificate
Jun 13, 2014
By
Steven Clay
I'm trying to print a certificate at the end of a Quiz in Storyline.
I do not use Articulate Online,
I simply want to print a certificate with the Learners name and date of completion onto different lines on an image of the certificate
Is there any simple way to do this as I'm not good with Java or HTML
I hope someone can help on this as I spent hours on it already
Thanks
7 Replies
Hi Stephen
Ask your learners for their name using a text entry field and then reference that variable on a slide designed as a certificate at the end of the course.
For the date, create a text variable called "SystemDate" and reference that on the certificate slide too.
Add the following JS trigger to the certificate:
Actin: Execute javascript
Time: When timeline starts
Object: Slide
Script to add is as follows:
var currentTime = newDate()
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);
It doesn't work in every browser but it's worth giving it a shot
There's a demo found here on the support pages: http://en-uk.articulate.com/support/storyline/javascript-best-practices-and-examples
Regards
Helen
And...
to print the slide add a button to the slide with the following javascript:
window.print();
H
Hi Steven,
As mentioned here there is no built in certificate option, but you could use the method here to generate a certificate.
Hello,
If the storyline project was published for web and if the story_html5.html file is launched on a website and assuming users was logged into this website to launch the project.
Is it then possible to get the user information using a Javascript and use that inside the storyline project to produce a completion certificate for the user?
Is this possible?
Can someone please advise.
Hi there Ganesh! We do not support Javascript coding, but hopefully some of our Java-savvy community members can chime in and assist here. Thanks for reaching out, and be sure to check out our documentation here on JavaScript Best Practices and Examples.
Hi Alyssa,
Thanks for reaching out. I managed to resolve this with the help of our PHP expert. So it's all working now.
Regards,
Ganesh
Great to hear, Ganesh! Thanks for coming back around to let me know you got it sorted out.
This discussion is closed. You can start a new discussion or contact Articulate Support.