Copy link to clipboard
Copied
I have a quiz that allows a learner to return to a specific content slide when they miss a question.
On the content slide, however, there is a button I no longer want to be visible. Is there a way the slide can check to see if the user is engaged in the quiz and if so, hide the object? I see a variable called cpInQuizScope, but I'm not sure how it works.
Thanks,
John
Copy link to clipboard
Copied
I don't know if that is the best system variable to use. How do you get on that content slide when not coming from a quiz slide? I was thinking about checking the cpInfoLastVisitedSlide value?
Copy link to clipboard
Copied
You could reach the slide one of two ways. It's a linear project, so if it was slide 5, you'd reach it from slide 4. You could also reach slide 5 by clicking on the "Review" button I have set up just before taking the quiz.
Copy link to clipboard
Copied
If the user has just been doing a quiz question then at some point they must have entered the quiz scope. While they are within the Quiz Scope the cpInQuizScope will be set to 1. However, I'm not sure whether that variable remains set to 1 throughout all other slides AFTERwards.
So you could use the On Slide Enter event of the first quiz question to check the cpInQuizScope system variable and if it is set to 1 then set another User Variable to 1 and use that variable in a Conditional Action on your content slide to determine whether or not to hide the button