Forum Discussion

RachaeLeyba's avatar
RachaeLeyba
Community Member
13 days ago
Solved

Change State of Button When Pass Test

Hello, Can someone look at this sample .story and tell me why my button isn't changing state to visited if someone passes a quiz? There are two buttons on the start slide.  Click the Test but...
  • AndrewBlemings-'s avatar
    13 days ago

    Your trigger on 1.1 that tries to change the state of the Play Button to Visited fires when the .ScorePercent variable changes, but the trigger is only "listening" for that on the slide the trigger's hosted on. When the learner navigates to 2.1 and 2.2, the Score might change but that state-change trigger is no longer active because we're no longer on the slide where it lives.

    Then when the learner returns to 1.1 after scoring 100%, the slide (re)loads and the trigger becomes active again, but the Score variable doesn't change after 1.1 loads so the trigger doesn't fire and the state doesn't change. If you change the trigger to

    Then the trigger will check the value every time the slide loads, and returning with a score of 100 will then be checked and confirmed.