In your Storyline eLearning course, displaying content through a lightbox slide typically includes a close button at the top right corner. However, you may want to control the closing of this lightbox to ensure learners complete a required interaction, like answering a quiz question, before they can exit. Here’s how you can hide the default close button.
Preview
Step 1: Open Slide Master
- Navigate to the Master Slide in your project.
Step 2: Create a JavaScript Trigger:
- Add a JavaScript trigger that executes when the timeline starts.
- Paste the following code into the trigger:
Final Notes
By following these simple steps, you can effectively hide the default close button from all lightbox slides and ensure learners complete the necessary interactions before closing the lightbox. This method is particularly useful for quiz questions or any mandatory content that you want learners to engage with fully before moving on.