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.
- ChristiePollickCommunity Member
Hi, Cheryl -- All great questions here! Although I do not have a method I can recommend to achieve what you have in mind, perhaps one of your fellow community members will be able to share some wisdom to pull off what you have described. :)
- GrantMcCleanCommunity Member
Hello,
Me again, I have got a basic certificate to work now thanks to everyone for posting tips!
I do need to add a picture into the top right corner which is just a logo.
I have tried adding in an additional contents line but it will not recognize the picture.
can someone help with the correct code to use.
- juliacollins-56Community Member
thanks
- SteveFlowersCommunity Member
Hi, Sarah -
What method did you use to generate the PDF? I've moved to a different method since the original article as that method didn't work well across different devices.
I use the PDFMake library to provide a way of generating the PDF at runtime. This way I don't need to worry about which PDF viewer is being used. Differences in the viewer were the most common cause of failure in my experience.
- daveleesCommunity Member
Anyone else having issues in Internet Explorer with this? IT is very buggy ... works for a bit and then just stops for no rhyme or reason?
Hi Dave,
What version of IE are you using? What version of Storyline are you using? Is it just the certificate that is causing your problems, or other parts of the course?
- CurtisKynerd1Community Member
Is there a specific folder were you should copy/paste the Certificate.html and Certificate.png files in the Storyline Output folder? I once could make this work, but I can't seem to get it to work in Storyline 3. I think in previous versions, you maybe placed the 2 files in the data folder(?), but not sure where to put them in Storyline 3. It's been a while since I have done this, but have a need to do it again. I am not having any success getting this to work this time with Storyline 3.
- HeatherQuinteroCommunity Member
Hello,
None of the links for this thread are working. Is there somewhere I can go to find this?
Thanks, Hi Heather,
Is there a specific link that isn't working for you? This discussion is a bit older, so if the links are pointing outside of community.articulate.com I'd suggest trying to connect with the ELH user who shared it. Check their individual user profile for a Contact Me button to reach them directly!
- CurtisKynerd1Community Member
There doesn't seem to be any activity on this forum recently. I have successfully done this in the past, but now I can't seem to get it to work. I took Steve's .story file that he shared but still the certificate "can't be found". Am I missing something in Storyline 3?