I want to add a trigger that will enable the Next button when the user completes the web object. Per Articulate support, Storyline and Web Objects work independently of one another. They suggested I post here to see if anyone has some sort of workaround to get the web object and Storyline to communicate with one another. The web object is an HTML I created in Active Presenter. Any suggestions would be greatly appreciated!
Hi Vicky, did you have any luck getting the web object completion to work/come through? We have a similar problem - we are using a Captivate scorm, published via Storyline in order to get it into Rise. Bit of a messy arrangement, but Captivate does VR so well. We want Rise to recognise the completion.
My goal was to disable the Next button until the web object was complete. Due to time restrictions (did not have time to play with Java), I created a trigger that enabled the Next button after 20 seconds so that at least they had to start the hands on. Sorry I could not be more helpful.
thank you for this! it, too, is exactly what i was after.
However i only just learnt that using Rise when developing the course ( the equivalent to your pacman.story export) does not allow adding custom javascript triggers like Storyline does.
So i'm thinking i may need to add a storyline interaction that can execute the js into my pacman.story and figure out how to get the code to set a variable for a button in my animation.story to be clickable/unclickable rather than wait for an animation to complete, after which i will be able to call it a day and move on to the next elephant.
I appreciate your effort and demos listed in the earlier topic. you've helped me get one step further after being stumped worrying about the fact that if its time-based, people can just wait it out and then continue (which is not ideal)
9 Replies
Have you thought of using variables? A true false maybe that flips when the web object has been completed?
Hi Vicky,
You can do that but you need to prepare both Presenter and Storyline to be able to communicate.
In Presenter, follow the instructions here about adding a trigger when it's complete:https://atomisystems.com/tutorials/ap7/adding-custom-scripts/
The JavaScript trigger you need add when Presenter is complete is something like this:
parent.GetPlayer().SetVar("PresenterComplete",1);
In Storyline, create a variable called PresenterComplete and set it to 0 when the timeline starts on the slide where you have the webobject.
Presenter will turn the variable to 1 when it's complete, so all you need is a trigger in Storyline to watch that variable change.
You can also use T/F variables for that if you want. There was a time when html5 had some bugs with T/F, so I use numbers.
Hi Vicky, did you have any luck getting the web object completion to work/come through?
We have a similar problem - we are using a Captivate scorm, published via Storyline in order to get it into Rise. Bit of a messy arrangement, but Captivate does VR so well. We want Rise to recognise the completion.
Thank you
Mata
My goal was to disable the Next button until the web object was complete. Due to time restrictions (did not have time to play with Java), I created a trigger that enabled the Next button after 20 seconds so that at least they had to start the hands on. Sorry I could not be more helpful.
No problem Vicky :)
Glad you found a workaround. I did find some info here which I've yet to trial/test out:
https://community.articulate.com/discussions/articulate-storyline/web-object-how-to-advance
This doesn't work in SL360. Does anyone know why? I'm desperately seeking a solution to have my web object set a variable in Storyline.
I'm new to Storyline 360 and am looking at a similar fix. however my web object is another scorm file entirely which is published to web.
I've resorted to setting the timeline to last for the average duration of how long it takes to complete that file ~roughly 10 minutes.
Works as a quick fix. thank you to Gerry and Jeanette for posting this workaround in this topic and demo
Check the demo I posted here. https://community.articulate.com/discussions/articulate-storyline/prevent-progression-until-inserted-web-object-has-been-completed
This shows a published Storyline project embedded as a web object inside of a second project.
thank you for this! it, too, is exactly what i was after.
However i only just learnt that using Rise when developing the course ( the equivalent to your pacman.story export) does not allow adding custom javascript triggers like Storyline does.
So i'm thinking i may need to add a storyline interaction that can execute the js into my pacman.story and figure out how to get the code to set a variable for a button in my animation.story to be clickable/unclickable rather than wait for an animation to complete, after which i will be able to call it a day and move on to the next elephant.
I appreciate your effort and demos listed in the earlier topic. you've helped me get one step further after being stumped worrying about the fact that if its time-based, people can just wait it out and then continue (which is not ideal)
This discussion is closed. You can start a new discussion or contact Articulate Support.