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.
236 Replies
- ShyamSahaCommunity Member
Yep,
I have figured it out
It's working now.
But thanks to Steve for sharing such demo...
- JeffreyHurtCommunity Member
Has anyone come up with a solution that can work for both HTML5 and Flash-version courses? I'd be willing to include a solution for each if there is a way to do so.
I have uploaded an abbreviated version of what I've been asked to do. I need the certificate to print just as it appears in the second slide. Is there a way to have a single slide appear without any player information so it is simply what is on the "stage"?
Steve's example is great, but the fact it goes haywire in HTML5 is concerning as we are developing this course for users all over the globe and the HTML5.
Thanks in advance!
- JanisTournil472Community Member
That looks great, but how do you print it?
- MaryBakerCommunity Member
Jeffrey,
I have the same question about printing only what is on stage and not the logo or sound icon. I figured out how to disable the menu but can't figure out the rest. Did you come up with a solution?
Thanks :)
- FredJanssensCommunity Member
Hi all,
I have the same issue as Shyam and cannot figure out why the Certificate only shows the image and not the content of the javascript (the name and the text replacing - you have passed The Grueler!For that feat, you deserve a break. Take 30 seconds. Then get back to work!)
No nails left, please help!
Thanks in advance.
- JeffreyHurtCommunity Member
Hi Fred,
You have to place the file on a web-based server before the JavaScript works. It doesn't work on your local machine or network. Once I uploaded mine to the LMS, it worked just fine. It's slightly frustrating because you have to upload it to see any changes/modifications. Hope that helps you.
- KathKinchCommunity Member
Hi
I'm really keen to learn how to print certificates - however the links in the first post seem to be broken. Has the content been moved?
Kath
- SteveFlowersCommunity Member
Hi, Kath -
Those are in a shared public Dropbox folder. I'll add them as attachments to this thread later today
It's easy to forget that some IT environments block Dropbox.
- KathKinchCommunity Member
Thanks Steve
- SteveFlowersCommunity Member
- SteveFlowersCommunity Member
- LeslieAdamsCommunity Member
Hi - I'm wondering if anyone knows how to get the certificate to print in landscape orientation by default (without the user having to change the print preferences). My understanding is that this would be a setting in the html document, but not quite sure how to set it up.
Related Content
- 2 months ago