Forum Discussion
Exiting a course while opening a hyperlink
I created a course that needs end with opening a website and exiting the course. I set the trigger to exit the course when the user clicks on a picture. I have a separate trigger on the same picture to open a website in a new browser window. When the user clicks, it does open the new window but it does not exit the course. When the user returns to the course window, it is still on the last page and the LMS is not showing the course as complete. Is there a way to do this? The last step for the learner is to go to the external website and complete training and testing which will take about an hour. That will cause the course to time out. I want the course to be marked complete when the user opens the external website. Thanks.
- WendyFarmerSuper Hero
Hi Melissa
what is the order of your triggers?
- MelissaLodhi-acCommunity Member
I have it set to Open the link then Exit the course.
- MelissaLodhi-acCommunity Member
I tried rearranging the order of the triggers and that did not solve the problem. Any suggestions are greatly appreciated.
Hello Melissa,
Thanks for reaching out!
The behavior you're experiencing is normal since both 'Exiting' a course and 'opening a link' involve an action that changes the active window on the screen from your Storyline 360 course to something else. For triggers to work, the active window and the focus of the learner should still be on your Storyline 360 course. Unfortunately, there's no way to get triggers to execute when the active window has shifted to a different browser tab or window.
There might be a way to accomplish this task using Javascript, but I'll leave this to members of the community to share how they accomplished this design requirement.
- MelissaLodhi-acCommunity Member
Thanks for that clarification.
- NedimCommunity Member
I'm not sure if I follow. Could be a trick to keep the course window active for a second or two after the learner click on the image to go to an external link. I created some sort of delay before the course window is closed. The tricky part is to have an external link window open in a new window, not a new tab. To do that, I used the custom window size instead of the Storyline default window when a link is open. I attached a little demonstration in the ScormCloud.