Forum Discussion
Javascript running in isolation but not the whole project
Hey there Pro Storyline users,
I'm needing an urgent fix for some code that I've been using.
Throughout the module are text fields the user can fill in - then they're given the option to download or email themselves said text triggering 'Execute Javascript' buttons.
If I Publish one slide or one scene the code works. The issue arises when Publishing the whole project.
I've attached the .story file. If someone able to diagnose this issue I will be very thankful. AI seems to be coming up short on this one.
Best of luck!
2 Replies
- PhilMayorSuper Hero
That is the symptom that you have an error somewhere in your JS.
If you look in the console you can see it is a syntax error on line 144 or there about.
One syntax error can take down everything, you should be watching the console it will save you time.
- AndrewBlemings-Community Member
I’ll echo what’s been said too: the console.
Sometimes the error’s obvious, most times it’s not, but all it takes is one missing semi-colon or an “unexpected” curly brace. It’s a very recent development that we can even launch the developer tools (Inspect button) in the preview frame, and it’s a huge boon.