Forum Discussion
Creating downloadable pdf files in Storyline - an update on earlier methods
I am late to the party, but REALLY want to pull this off. I am working on a Roles and Actions course that will culminate in a "Now go do it!" kind of sheet. I would love for them to be able to download it. I worked the JS into what I needed(Story attached). I have the document(attached as well). I think all of it looks good. I am publishing to a LMS from Storyline and telling it to create a Zip file. I have put my document ALL OVER the zip file to try to make sure it found the document. When I preview it or load it into the LMS and go through it, when I click the button nothing happens.
Now, interesting fact, I loaded your notes demo in the LMS and in preview from Storyline and nothing happens with it either. SO, I am think my code my be good, but it is not finding a file.
I have also changed the URL for the document to our SharePoint site and that does nothing too.
Help me Obi-Won Kenobi!
PS: I added triggers to fill out what you can see on the screen and then I got smart with the things your can't but are on the PDF and added it to the variable default. :)
Hi HunterBlake,
There were a few things wrong in your course.
In the Javascript code in the StoryLine course you tell the code that the pdf document is named "Roles_Goals.pdf" but the PDF document you created is named Goals_Actions.pdf. To fix, rename the PDF document "Roles_Goals.pdf"
Next, in the Javascript code in StoryLine you have the following code:
Body = player.GetVar("Body");
Mind = player.GetVar("Mind");
Spirit = player.GetVar("Spirit");
Heart = player.GetVar("Heart");
but you named the variables in StoryLine Self_Care_Body,Self_Care_Mind, Self_Care_Spirit, and Self_Care_Heart
The fix here is to rename the variables in StoryLine to Body, Mind, Spirit, and Heart.
Cheers!
Mike G
Related Content
- 7 months ago
- 2 months ago