Forum Discussion
Lightbox functionality questions
I am making a fairly intricate interactive game in storyline360, I am leveraging lightboxes heavily for many of my mechanics.
The issue I am having is that I am light boxing in knowledge check slides from question banks but the user can click the [X] that comes in with lightboxes. This in breaking a significant amount of my triggers. Is there a way to remove the [X] on the top right when a light box opens to prevent the user from closing the lightbox?
- JudyNolletSuper Hero
If you scroll through the comments in this post (https://community.articulate.com/discussions/articulate-storyline/remove-lightbox-x ), you'll find Stefano Craba's JavaScript for hiding the X.
FYI: The X will probably flash briefly, but that should happen too fast for anyone to click. Also, be aware that you can't test this in Preview, because Preview doesn't run JavaScript. So you'll have to publish to see it in action.
- RyanHiattCommunity Member
ok that line seems to work and I will use it as my back up, 2 follow up questions;
1: if I am light boxing in a knowledge check, and my user closes it(lightbox) partway through after submitting some but not all questions, when they reopen the lightbox the navigation of the knowledge check is broken and they cannot selected or submit answers. I have tried setting it to save the return state but that does not work.
2: When I lightbox a slide then lightbox in another slide from the first lightbox. when i set triggers to close light box it closes all active lightboxes but i only want it to close the most recent one. Is there a way to specify which lightbox is to close or should i just be adding another trigger in to reopen the original light box in the same frame?