Forum Discussion
Printing and Emailing a Course Completion Certificate in Storyline 360
I know that there have been several threads/questions regarding this topic, but after all these years I still haven't figured out a solution.
After completing my course, I want users to have the ability to:
- Print the Certificate of Completion
- Email the slide/screen featuring the Certificate of Completion
It doesn't appear that Articulate has addressed this often-requested functionality, so I'm relying on the Hive to tackle this one.
Thanks!
10 Replies
- BrandonDameshekCommunity Member
Hey there. Thank you for the thoughtful response. Will need to spend some time on this. When you say "populate the certificate at the end," do you have your certificate on its own slide, or is it on the passing level on a Results slide for a final quiz?
- AngeCommunity Member
BrandonDameshek​ Hi Brandon, If you've never done this before it can be daunting (I remember the first one I did!) - this may help understand how it works, the following link goes to an interactive demo and a download of a freebie print certificate .story file. There is an example in the file download of a certifcate: printCertificate.html, it is placed in the Storyline output folder after you publish your Storyline module. This freebie is just for print - another "execute javascript" trigger will need to be added for email.
- BrandonDameshekCommunity Member
Hey there, Ange! Thanks for sending this over. I've seen this video previously. The thing I've noticed (which is the same thing I've noticed in the one I tried to create on my own) is that I can't seem to get the certificate to print to full screen. It reads left to right in portrait view, but looks even worse in landscape view.
- PerryCoxCommunity Member
So, I have my certificate on its own slide that they reach after the passing results. And I have it either with a text input that they fill in, or I used to pull their name directly from the LMS, but that function is currently broken with the update as of March. I also have it auto-populate the date on the certificate with the current date.
- BrandonDameshekCommunity Member
I don't suppose you'd be willing to share your file? I'd love to see the build.
- PerryCoxCommunity Member
So, the easiest method for doing this is actually built into storyline now. They way I've done it in the past, I have the variables pass along the information to populate the certificate at the end and I have a big print button on the certificate slide with triggers to hide the button, print, and then show the button again so the users aren't printing the button along with their certificate. And I just use the Print Slide trigger.
Then either as a second button on the certificate, or on the next page, I have an email your certificate button. There is an email to trigger that has you input the desired email address you want your user to send the email to. I fill that in with the instructor's email and provide instructions for the student to attach their recently printed pdf file. The email to trigger opens the users default email program and prepopulates the email with your specified email address.
If you needed a variable email, say you tell your user to email their certificate to their instructor/trainer/course instructor etc. and the email needs to change. You could do it with javascript instead.
var player = GetPlayer();
var recipient = player.GetVar("recipientemail");
var subject = "Storyline Course Completion";
var mailto_link = 'mailto:' + recipient + '?subject=' +encodeURIComponent(subject);
window.open(mailto_link, 'emailWindow');
That's basic to open the email and let them attach the certificate. If you didn't need the certificate and just wanted to send a completion email, or wanted to attach more information, you could add a body to the mailto_link line and give them a pre-drafted email. But the easiest way is to just have them send the downloaded pdf. - AndrewPulford-bCommunity Member
I created one where the user has to enter their name and email at the start which are saved as variables. These are then used to generate a PDF completion certificate at the end. You could have an instruction for them to attach it to an email and send it to a given address. In order for the email to be automated you would need to have some kind of SMTP service running on the server hosting the module. And I guess triggered via custom javascript in the module (I haven't explored that).