Forum Discussion
Printing User Input to a PDF
Hi Amy,
I just finished making a relatively simple method for printing user inputs (which you can then "print to PDF."
I'll post this elsewhere too, but I just saw your questions and figured you might be able to use my sample file. Let me know if you have any questions.
- EricCarlson-1188 years agoCommunity Member
I should mention, you have to publish the file to see how it works. The JavaScript doesn't function in the Storyline player preview.
- AmyNicholson8 years agoCommunity Member
Hi Eric -
Thank you for your posts! I'll play around later today ... I'll post the results, if it works for me or not. Best regards.
Amy
- TracyMoore-906f7 years agoCommunity Member
Eric, where is your JavaScript for this slide? The slide works great, and I'd like to use it, but I need to be able to adjust the code to allow for more variables.
- EricCarlson-1187 years agoCommunity Member
Hi Tracy,
Storyline hides the Javascript inside of triggers.
(1) Double-click on the *Execute JavaScript* trigger.
[image: image.png]
(2) Click on the *[...] Button *next to *Script*
[image: image.png]
Let me know if you have any trouble adding more variables.
all best,
Eric
- KatyKnapp7 years agoCommunity Member
Thank you, Eric, for posting this! It's exactly what I needed!
- CeliaPatton6 years agoCommunity Member
Thanks Eric, this is super handy - any chance you know how I could include some images in my PDF to make it look a bit fancy? Or is there a way to use a PDF template for the header/footer parts??
- AnnaHoffman-3995 years agoCommunity Member
Hi Celia. I stumbled across this article while looking for something else. This article from eLearning Brothers might answer your question if you are still interested.
- GabrielleRuc6163 years agoCommunity Member
Thank you for being my JavaScript GOAT today! Tried it and adapted it to my needs, and it printed beautifully the first time.
Related Content
- 3 years ago
- 3 months ago
- 10 years ago