Forum Discussion

RonaldFeldman's avatar
RonaldFeldman
Community Member
4 hours ago

Triggering Navigation with Variable "question.correct"

I am trying to have a hidden "next" button appear only after a quiz is completed correctly, by using the question.correct variable to change the state from hidden to normal. It works great, but when I have two quiz slides in a row, the "next" button on the second slide is not hidden when I click over to it, even thought its initial state is set as hidden. This is happening in multiple instances in the same project.

  • Based on your description, I'd say you need to use a unique variable for each question. Or reset the question.correct variable every time you leave a question slide. 

    If that's not the issue, well, further troubleshooting is just guessing without seeing the .story file. If you upload it, someone might be able to solve the issue.

    Here are the best practices for uploading a .story file: 

    • Only include slides that are related to the problem.
    • Be sure objects, layers, motion paths, and variables have meaningful names.
    • If there is proprietary content, replace or delete it. For example, replace proprietary text with “ipsum lorem” text.
  • Nedim's avatar
    Nedim
    Community Member

    I believe the issue lies in how your triggers are set up. The built-in variable Question.Correct will reset to false when moving to the next quiz question, even if it was true on the previous question. To resolve the issue, try setting the Next button’s initial state to Hidden and configure the triggers as follows:

    Attached is a short video demonstrating that this interaction works as intended.