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:
108 Replies
- MatthewPolaniecCommunity Member
Is there anyway that these can be stored on a server so that an Administrator can recall them later?
- JamesFinder-b89Community Member
Do you already have an LMS solution? If so, check this link here:
https://community.articulate.com/discussions/retrieve-lms-user-name-as-variable#258304
- HelenaSmithCommunity Member
I am using Notepad++ so I will try to create or write code (I am very new to this) in order to create an html file. How does that work with the Powerpoint file that I created? I am not sure how they both will work together before I place that information in Storyline.
- staceykramer2Community Member
Thank you so much for this post!!
I am trying to figure out a solution to print a custom certificate. I created a certificate in Dreamweaver and then wrote out the Javascript per this thread but the "Execute Javascript" trigger is not launching anything. Would anyone have the time to take a look at my code and let me know what is wrong? I am not an experienced coder but I am trying to figure this out.
Thank you for you time!!!
- StephanieLongCommunity Member
I am non-technical (which is why I started using Storyline in the first place) and worked on this several months ago and nothing would work. I really wish that Articulate would listen to its customers and release this as a feature. Lectora Inspire has this feature.
- JamesFinder-b89Community Member
Checkout elearninglocker.com
James Finder
Founder, PLExD LLC
p: 8504455336
s: http://getplexd.com
e: james@getplexd.com
- MattLynchCommunity Member
I have followed the steps above, and I can get it all to work when publishing to cd.
The problem is when I export to web or LMS and host it on an LMS, the images do not appear when printing. I have tried to put them in a web object and link them - no good.
They currently have the full address linking them, but it doesn't show.
Does anyone have any idea why this is and how I can fix it?
my code for the image link is:
contents+='<td width="30%"><center><img src="http://elitefireonline.com.au/certificate/Signature.png"></center></td>';
- SteveFlowersCommunity Member
Hey Matt -
This image link doesn't show anything for me - it's blank.
http://elitefireonline.com.au/certificate/Signature.png
If you're using a modern browser to run the output, right-click the certificate page and choose inspect. This will bring up a developer panel. Click the console link. Do any red lines appear here?
One of the potential causes of failed loads is mixing http and https. If your LMS launches the window as HTTPS (very likely) and the contents of the page are attempting to load from HTTP, the browser could be shutting that down to protect the user.
- MattLynchCommunity Member
Hey Steve thanks for the tips. The blank image was my fault: http://elitefireonline.com.au/certificate/CertificateBanner.png This one works.
My LMS is Moodle, and definitely uses https. Is there a way to use the links with https?
Do I need a relative link? I don't know a lot about these and where I could put it. I am publishing as scorm.
- SteveFlowersCommunity Member
Hey Matt -
One way to run relative links is using a Web Object to "carry on" files. Pretty easy:
- Create a folder and drop in all of your files. You can add anything to this folder including images, audio, PDF's... Any digital file.
- Add an index.html file to the folder. This can be completely blank. Just needs to be there for the Web Object to load.
- Create a slide in your story file and add the web object. This can be a slide that is never reached. You could also add it as a layer that's never displayed on one of your slides. The purpose of adding this is so that it's carried into your Story file and exported when published.
- Publish your storyline output. You can publish to LMS, Web, or CD. Doesn't matter, the published files are going to be relatively consistent.
- Explore the published folder. Navigate to the story_content/WebObjects folder. You'll see at least one Web object folder with a unique ID in that folder. If you see more than one, open each folder until you find the one that contains your "baggage files".
- Copy the string to of unique characters from the folder that contains your files.
This will become your relative reference. Example:
story_content/WebObjects/5uVWX7D/heading.png
- MattLynchCommunity Member
Steve, thanks for your help. Awesome!
It turns out that it works in the edge browser but not in Chrome. Is there anything that can fix this? It seems like I am so close yet so far...
- SteveFlowersCommunity Member
When you right click on the popped up certificate and click Inspect, then choose Console, anything appear in the console in red?
Related Content
- 9 months ago
- 2 months ago