Forum Discussion
Example files: Generating a certificate from Storyline
This example demonstrates how you can take user input and generate a certificate for printing. Any Storyline variable or score can be used to generate the output. The file and file add-ins are both simple and straight forward. This will only work in the Flash based output. This will not work in the iOS output or HTML5.
To replicate this on your end:
1) Modify the story file to your liking.
2) Extract the add-in zip file above (certificate.html and certificateBG.gif)
3) Copy these two files into your published output directory. You'll need to do this each time you publish.
This is a really basic example. You really can do quite a bit with this including adding a print button, extra fields, collecting values from the LMS like the user's first and last name.
** I noticed a bug when playing with this file setup. I initially thought I would be able to include the certificate files as resources to avoid copy / paste surgery after publish. Unfortunately, Storyline mangled the HTML file on publish. Will be submitting this as a bug.
- SusanLord1Community Member
Hi everyone,
Thank you for the certificate file! It was very helpful!!
I was wondering if there was a way to create a PDF certificate (ie... send the data to a pdf, instead of an html document?)
Thanks!
Susan
- øysteinellingseCommunity Member
Hi!
I´m new in here, and also a rookie in Storyline. I´ve just startet to move our e-learing course from Coursebuilder to Storyline, and I must say that Storyline works much better.
At the end of our course there´s an exam that the student must pass to get a certificate.
Since I´m a rookie at this, I wonder if some of you can help me to transform my Word doc (attached) to become a certificate that I can use in our course.
The certificate should contain name and date wich the student can put in (just like in Steve´s first post shows).
As you can see if you open the file, all the text is in norwegian.
I hope that some of you can help me, or at least describe how to modify Steve´s example.
Best Regards
Øystein
- SimonTull1Community Member
Hi All
The code works like a charm, however I am trying to add the current date to the certificate.
I have tried creating a date variable in Storyline and then calling that variable to the certificate, and I have tried calling the date using script in the Certificate HTML, but both times I end up with just a blank certificate, picture no text
Could some one suggest how and where I add the new script to the Certificate.HTML please?
I have a variable called %SystemDate% in Storyline which works using this script;
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);And I have tried this code in the Certificate.html
var learnerScore=player.GetVar("Score").toString();
document.write(""+learnerScore+"");.
I have a feeling it is how I am trying to add the additional code to the original script that is causing the problem.
Any suggestions would be gratefully received
Thanks in advance
Simon
- FabioDiPaolo1Community Member
Hi, I make a certificate and this work on Chrome, but doesn't work on IE 7 and 8. Has someone made any fixes?
- DamoDCommunity Member
Hello,
is there a possibility using this solution to generate this certificate to PDF.
I know this solution https://community.articulate.com/discussions/articulate-storyline/saving-storyline-variables-to-a-pdf
but it doesn't work on our server so I want to try generating it from html file.
Regards,
Damo
- LuciaSalters-3bCommunity Member
Hi
Please could you explain how and where you pass the 'learner' variable value to the certificate?
- SinchuRaj-Community Member
Hi Steve, thanks for the certificate, i just updated few more functionalities like score and student name (from LMS).
1.I have created two variables , one for username (var Studentname) and another for score(var customScore).
2.i Set the value for customScore in result page
I have added below code in print certificate button
var LMSName = parent.SCORM_GetStudentName();
var player = GetPlayer();
player.SetVar("Studentname",LMSName);3.called this variables in certificate.html page.
I have attached the source and published file for more reference.
Note - Student name will work only in scorm
- christinejeziorCommunity Member
Hi Everyone is there a way to see results without a web based server or a LMS?
- OwenHoltSuper Hero
Would generating an email with the results be enough?
- christinejeziorCommunity Member
Hi Owen,
sorry for the delay in reply ..we had some major storms and I lost power and telephone connections for 6 days...but. All is connected again..
this would be great ..and better if I could have the persons name within the results themselves...but a good solution...if you could tell me how I would be grateful
Hi Christine!
Articulate Storyline is designed primarily as an e-learning development tool to be used in conjunction with Articulate Online or your own learning management system (LMS). Tracking results in a text file or database isn't supported, but hopefully someone in the community will be able to assist you if this is what you are looking for.
- christinejeziorCommunity Member
Hi Leslie, while I understand and I love articulate...if it's all too hard my small clients will go with captivate as it does have the function to print result certificates....I prefer articulate hands down but....if this is what they want and I can't support it in articulate...I am still trying.....
- OwenHoltSuper Hero
Take a look over here at my custom certificate solution:
https://community.articulate.com/discussions/building-better-courses/create-a-course-certificate-in-storyline-with-java-and-htmlFor the email, I would just expand on Stephanie Harnett's "user notes" post.
https://community.articulate.com/discussions/building-better-courses/user-notes-that-they-can-print-and-email
- BarclayVisionCommunity Member
I think I'm missing something on passing variables within the trigger? Sorry if the question has been asked before, I don't have access to the storyline original project - I'm adding on to existing projects with LMS certificate - I know the PRINT button has trigger built in to pass var to report.html and that works fine - there is another button that is linking to certificate.html file that I need to send the test results variables - does this need to be setup with a different trigger to send the variables to the new html page? Or can these fixed variables be pulled from the certificate.html page without some sort of trigger?
Sorry but again I don't have access to the .story project and am relying on 3rd party to create and modify that part...