Forum Discussion
Send results slide via email using Javascript ??
Leyhton F said:
Hello Alicia,
Did you ever figure out the answer to your question? I am hoping to setup something similar. I have done something similar in the past using Captivate and a third party widget but haven't been able to duplicate the same procedure using Storyline. Based on your original post you seem to be quite close to a solution using javascript. Any insights that you can share would be greatly appreciated.
Regards,
Hi Leyhton,
Unfortunately no, I was never able to get the Javascript to execute what I needed it to do. I wanted the Javascript to email an image - a certificate of completion. I was able to get Javascript to execute sending an email with the original script I posted above, but I'm not quite proficient enough in Javascript to get it to email an image...or perhaps that's just not a capability at this time.
John Griffiths said:
Hi,
This script looks really promising and I would be really interested to know which file you edit to insert it? I have looked under the project / story_content / story.js file but cannot find the right place for it to be.
Any help would be much appreciated.
John
Hi John,
I can't speak for anyone else, but when I add Javascript to Storyline I open up the Storyline file that I'm editing and add a trigger. Select "Execute Javascript" as the action and you'll get a little "..." button right below the action line (for the Script). Click on that button and a blank box will appear. Copy and paste your Javascript into the box and click OK. Then just fill out the When and Object lines as needed. Hope this helps!