Forum Discussion
Create a Course Certificate in StoryLine! (with Java and HTML)
I noticed in Stephanie Harnett's most excellent post on user notes that can be printed or emailed that much of the java for the printing function was really just filling the print window with content by using html. I thought to myself, why not use this same method for creating a course certificate. So I did just that following the steps below:
1) Design a rough draft in PowerPoint (so I could see what elements I would want on the page and determine or create any graphics I would need.
2) Create graphics and publish them to the web. You will need to reference them using a full URL.
3) Create an HTML based certificate using your favorite html editor. Tables work really well. I discovered this on my 3rd try to get this right. (More on that later.)
4) In StoryLine, create a trigger to execute JavaScript
5) Use the JavaScript to create your print window contents by adding the lines of your html together (see screenr)
Publish and test.
Below is a copy of the certificate created by StoryLine. The blue text represents variables pulled form the course:
- OwenHoltSuper Hero
By the way, I've successfully deployed this using a relative link. I have my certificate graphics in a folder that I drop into the published files folder. For our LMS, I actually had to include the root folder as part of the relative link path. I discovered this by using a traditional relative link path and publishing the course. The certificate launched with the nice "red X" everywhere a graphic was supposed to be. Looking at the properties of the red X gave me the expected path the window was using to find the graphics. I updated the code, republished, and boom.... the certificate works great.
- AshleyChiassonCommunity Member
Great idea, Owen! This will come in handy with one of my current contracts
- OwenHoltSuper Hero
Let me know if you need any assistance or further clarification.
Everyone seems to like a certificate.
- MarkWilson2Community Member
Hello Owen,
Would you by any chance have the storyline file you could share with me on certificate example at the top of this thread?
I am not great with javascript but am better editing code to fit my needs than writing from scratch.
I appreciate if you don't want to share with me but please let me know either way.
Thanks
Mark
- OwenHoltSuper Hero
Let me see what I can find that doesn't contain proprietary information in it.
- OwenHoltSuper Hero
- OwenHoltSuper Hero
- MarkWilson2Community Member
Owen,
Thank you VERY much for that.
I appreciate it a lot.
Mark
- RussSawchukCommunity Member
Hi Owen,
A big THANK YOU for the sample code. I was able to create a working certificate without any major problems. When I swapped out the images, the alignment got out of whack. However, I posted the code into Dreamweaver, used Design to align everything the way I wanted, and copied back the HTML code into your example. Works great!
The two biggest complaints about StoryLine that I are have are the lack of the Certificate feature and database tracking. Using javascript, I now have got both these features in my SL projects.
Thanks again.
Russ