Tigger an Action when Light Box Closes

Aug 24, 2021

Is there a way to trigger an action when the lightbox closes. I saw there were work arounds by creating your own layer, but those responses were from 5 years ago so I was hoping there was a better way!

 

Thanks!

1 Reply
Walt Hamilton

The problems are:

1. when a slide is lightboxed, the list of triggers on the original slide is aborted, and

2. the learner can close the lightbox with the built-in  close icon, and you can't utilize that click.

Solutions are to go into js or published content and remove built-in close icon, or use layers, which some people find easier.

Show the layer first, then lightbox the slide. The action to lightbox interrupts the timeline of the slide, the list of currently being executed triggers, and the timeline of the layer. You can't be sure when the learner will initiate the lightbox, and can't restart the trigger list, but the layer timeline will start when the lightbox closes, so you can use that.

In the attached sample, you may want the layer to do more, or you may want to take the textbox off it.