Explore the community Forums Lectora Inspire Tools Questions & Answers JS Error Message for returning to main window Reply To: JS Error Message for returning to main window

#450556 Score: 0
Profile photo of Joe Wieloch
Joe Wieloch
Moderator
beginner
intermediate
friend finder
contributor
LUC16 Attendee
verified member
wise owl
LUC17 Attendee
advanced
picture perfect
73 pts
@wheels

Hi Therese (@tmichael9734)

Here is another alternative:

Create a variable, say, ReturnToPage and create it so it is initially false.

Then on the main page add a Timed Interval action that would Run the Action Group when the condition ReturnToPage is equal to true. Setting that to run every 1 seconds should work fine.

Then you could have these actions on your video:
On Done Playing: Modify Variable Set ReturnToPage equal to true
On Done Playing: Exit/Close Window

And in the Action Group that gets run put this action at the beginning (so the Action Group isn’t run again):
Modify Variable Set ReturnToPage equal to false

For other pages where you have this similar situation you should be able to reuse that same variable.

Hope this helps!

Joe