Forum Discussion
Trigger actions not really working
- 7 months ago
I don’t see any reason why it shouldn’t work unless you have something else going on. I created a simple scene with two questions, a result slide, and a slide after the result slide to display the status icon, along with the necessary variables and triggers to match your scenario. When I preview everything, it works as expected. I’ve attached my .story file for you to review and compare to see if anything is different.
Hi BentMichaelsen- I'm not if this is the cause of the issue, but I want to make you aware that the variable change trigger will only trigger when there is a change to the value. For example, if your variable already has a value of Pass and you set it to Pass, this will not trigger a change, so you should always ensure the variable value is reset to a value that is not Pass/Fail, before setting to Pass/Fail. This will ensure the variable change trigger will always run.
Also, don't forget you can use the "Hidden" state rather than creating an "Empty" state on the element.
When debugging a problem like this, it is a good idea to add a text box to your slide that displays the value of the variables on the slide, just so you know for sure what the values are.
Quizstatus_BG = %Quizstatus_BG%
2_bg_visited = %2_bg_visited%
KC_BG.ScorePercent = %KC_BG.ScorePercent%
- BentMichaelsen-7 months agoCommunity Member
Hello Sam, thank you for your input. I know of the hidden state, and had used that but changed to an "empty" as it didn't work the way I wanted it to. I don't know whether you saw the attachments, the first clearly shows the text boxes I added to show the variable changes.
Related Content
- 7 months ago
- 10 years ago