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.
- LeslieAdamsCommunity Member
Thanks. This is for a project that is being delivered via CD to users around the country where we have no idea what browser they will be using. Since it is via CD and there is no tracking, they like the idea of a printable, "displayable" certificate, but the portrait orientation will just have to do!
- Samantha-BeanCommunity Member
Thanks everyone! I am very new to Storyline and every time I have a question I seem to find the answers on here.
Hopefully when I become proficient I may be able to add some suggestions too.
- NancyWoinoskiSuper Hero
@Steve, I pulled down your story file and the attachments but can't seem to get this to work for me.
The certificate launches ok, but not of the text you have defined with the document. write command display.
So All I am seeing is the background and nothing else.
I've tried it on all my browsers IE, Firefox, Chrome and Safari and none of them display the text. I even uploaded it to the web just to see if it was some kind of security thing when running locally but that did not make a difference.
- SteveFlowersCommunity Member
Interesting... Can you post your files somewhere I can get to them? Would love to take a look.
- NancyWoinoskiSuper Hero
Actually Steve, it is the one you posted. It does not work for me. I have not made any changes to it. Can you double check to see if the one you posted works for you.
- DaveFulleCommunity Member
Neither of these actually work on an LMS - I've tried accessing the course on our LMS in IE and Firefox. I did not modify the pages that were in your documents - just put the pages into an existing course with a quiz - put these after the quiz and put Steve's files in the output. You can type your name but in the first example from Steve, the background never displays and the name is not drawn in. In the second example from Jefferey, again you can type your name, the name is never brought in, but the slide does have a background - but doesn't print.
- SteveFlowersCommunity Member
Interesting. I've uploaded the files with one minor change (the graphic didn't show up on a 'NIX server due to a case issue):
http://www.xpconcept.com/certificate/story.htmlIt pulled the values for me OK. Can you take a look with your browsers to see if this one works?
- SteveFlowersCommunity Member
Also, anyone that's having trouble with an LMS displaying the dynamic content - can you try this SCO? I'd like to get to the bottom of why this might not work. Fun puzzles are fun
- DaveFulleCommunity Member
I did get the original to work - the reference wasn't calling the correct text field for some reason. Now I changed the background image and can view it, but can't get it to print.
- DaveFulleCommunity Member
here's what I get: