Forum Discussion
Storyline 2 Example - Generating a PDF Certificate for users who successfully complete a quiz
This is brilliant...thank you Ryan! Hmmm...can I also pick your brain??
I've been asked to create an initial assessment questionnaire, with each question carrying a score.
The score collated determines the eLearning pathway that user takes. At the end of the assessment, on screen feedback is given. My client would like the feedback to be also accessed via a downloadable pdf.
I'm very new to eLearning and want to know if the method highlighted here would work?
Thanks in advance.
Simone
Hi Simone,
Glad you've found this useful. As Ashley suggested you would set the value of a text variable to be equal to the feedback text. You could then retrieve this value when you generate the certificate.
e.g. if you had a storyline variable learnerFeedback
You would retrieve the value of this storyline variable by adding the following JavaScript to certificate.html
var feedback = player.GetVar("learnerFeedback");
You would then need to modify the layout of the PDF document definition to include this new variable.
Remember to account for the varying amount of space that will be required for the different pieces of feedback text when designing your certificate.
Hope this helps,
Ryan