Forum Discussion
Storyline 360 - Generating a PDF Certificate using JavaScript
Hi Ryan, thank you so much for your assistance and patience in walking me through this. I've been able to make it generate the PDF certificate! The formatting is off for the text placement and paper size but think we can fix that. I assume we would update the "certificate.js file for this correct and not the js in the Storyline trigger?
I think this is where I get confused, there are two places for the js content, one in the Storyline course success layer that executes the js file that is in the web object folder. The one in Storyline is just used to trigger the js in the folder, any modifications to the certificate and content on the certificate would be then done to the file in the folder, would this be an accurate assumption?
No problem at all Doug.
You're right, the JavaScript in the storyline trigger only calls the generatePDF function in certificate.js which generates the PDF.
Any changes you need to make to the format of the certifcate should be made in certificate.js.
- DougDewan3 years agoCommunity Member
Hi Ryan, just curious, are you aware of any way to make the course email a participant their certificate rather than download it?
- RyanLowry3 years agoCommunity Member
Hey Doug, can't say it's something I've looked into. I don't think it will be possible to attach a PDF certificate generated on the client side to an email and send it. Others on the thread might have some bright ideas.
It might be better to let an LMS handle the certificate side of things if you have that option? Moodle for example with an appropriate plugin provides the option to issue certificates based on completion of an activity such as a Storyline SCORM. These is an option to email certificates and you get the benefit of centralised recording of learner progress.
- DougDewan3 years agoCommunity Member
Thanks Ryan, yes ideally we would have hoped the LMS would do that however ours does not. We use Workday Learning. WDL says the authoring software should do the certificate functionality and Articulate Storyline says the LMS should be performing the certificate functionality, so neither seems to want to own this with seems very odd to me as so many people require this functionality. Once again, thank you for all your help and insight in finding this solution to address the gap!