Forum Discussion
Urgent Help Please! Conditional Trigger Not Working
I am trying to create an alert box to inform students if they perform an operation at an incorrect time. For instance, if a student chooses decision #5 before they have chosen either decision #3 or #4, the student should receive an error message. However, if a student chooses decision #3 or #4 then decision #5 there should not be an error message.
I am using the trigger conditional formatting "or" but it doesn't seem to be working. Can someone please share their wisdom! See attached for my work in progress with the various triggers I've created.
Thanks!
- SarahHodgeFormer Staff
Hi Ashleigh and welcome to E-Learning Heroes! 😊 Thanks for sharing the story file. I took a look at it and saw that one of the triggers prevented the layer from being hidden because either D3 or D4 would be Normal and you mentioned only one needed to be disabled for the error message to pop up. I edited your story file to get everything working (see attached). I disabled that trigger so you can see which one I'm referencing, but feel free to delete it. I added a variable to the project called "decision" and set it to False, and then added two triggers.
- Set decision to value True when the state of at least one of the rectangles is Visited.
- Show layer Unititled Layer 121 when the user drop D5 on Drop Target 01 if decision = variable False
This makes it so if the learner only needs to drag and drop either D3 or D4, they can then drag D5 without getting that error message. I hope that helps. Let me know if you have any other questions.