Forum Discussion
Lightbox for Knowledge Check Review
Hello,
I'm working on creating a module that has several lessons. At the end of each lesson, I want to have a series of knowledge check questions about that lesson. I want to give learners two tries to answer the question (one for T/F), and then I would like them to revisit the slide that discusses the information in that question. I think the easiest way to do this would be to use a lightbox.
My problem is that they cannot reanswer the question after the lightbox closes. I have the settings on the layers/KC slide set to "reset to initial state when revisiting," but it doesn't reset the question. Any ideas?
- AmyDombrowski-1Community Member
Thank you, Sam & Nedim! These both seem like great solutions. I'll play around with it today and let you know what I end up going with.
- NedimCommunity Member
I agree that using a lightbox is the easiest way to accomplish that, and it’s a nice way to revisit the lesson without leaving the question slide. However, it is also causing the issue. Closing the lightbox is essentially the same as hiding a layer, rather than jumping to a new slide. That’s why the checkboxes can’t be selected again and the question doesn’t reset, even though the question slide properties are set to "Initial State." Additionally, there are no more attempts to answer the question. To make it work in your favor, add a result slide (if you haven’t already) and adjust the triggers on the Incorrect layer as follows:
This will ensure that the quiz result is reset (giving you two more attempts) and the checkboxes are cleared for new selections. The result slide doesn't appear in the menu, and you can always skip ahead if you don't want the learner to see it. Sam's solution will certainly work as intended if, for any reason, you don't want to include the result slide in your project.
- SamHillSuper Hero
I think, in order to do what you are looking to do, you may have to use your own variable to track attempts rather than using the question configuration options. This way, the question can remain active all the time, but the functionality of showing the lightbox would be controlled by your own "attempts" variable.
This is just a rough sketch of an idea, but you could just define a number variable called "qattempts". Each time the user selects submit, or a feedback layer is opened, it would increment "qattempts" by 1. Then, when "qattempts" reaches 2, show the lightbox.
Ensure that you add a trigger to the Master Slide on timeline start to always reset "qattempts" to 0. This means that every new question you attempt, can re-use the "qattempts" variable and it will be 0 each time the slide loads.