I am trying to create an interaction where the "correct" layer will show once the submit button is clicked so long as multiple conditions are met. The submit button works correctly if I only have 1 condition but as soon as I add a second "and" condition the submit button no longer works. I have 10 conditions that need to be met.
I am creating something customized. On the second layer "build a check" I have a submit button. Once the user clicks submit I want 1 of 2 things to happen. Either they view the "correct" layer or they see a message "sorry try again". What I tried to set up were multiple conditions (total of 10) in the trigger for the submit button. It works when I have 1 condition but it won't work if I have more than one condition.
Hi, Darby -- Thanks so much for sharing your file, and hopefully Wendy or another community member will be able to offer lots of ideas for this custom set up you have in mind. :)
Using the Date as an example, this trigger doesn't change the variable Date; it just sets it to what it already is, so there is no change when you drop the shape:
If she were here and weren't out gallivanting around, and having fun (I hope), Wendy would recommend to you that you use a true/false variable to indicate whether the shape is dropped on the right spot. Set it's default value to False, then change it to True when the object is dropped on the right rectangle:
Then the condition on the submit button can read:
If DateCorrect = True and NumberCorrect = True and ...
She usually gives good advice, so I'd try that if I were you.
9 Replies
Hi Darby
are you using one of the SL quiz types or are creating something customised?
might be easier for someone to help you if you could upload the story file
Hi, Darby -- Thanks for reaching out, and actually, it looks like Wendy was able to help someone in this post that seems to be posing a similar question: How Can I Display a Layer after Multiple Conditions Have Been Met?
Please take a look and let us know if that will work, of if you have something else in mind, please upload your file for further assistance. :)
I am creating something customized. On the second layer "build a check" I have a submit button. Once the user clicks submit I want 1 of 2 things to happen. Either they view the "correct" layer or they see a message "sorry try again". What I tried to set up were multiple conditions (total of 10) in the trigger for the submit button. It works when I have 1 condition but it won't work if I have more than one condition.
Hi, Darby -- Thanks so much for sharing your file, and hopefully Wendy or another community member will be able to offer lots of ideas for this custom set up you have in mind. :)
Sorry Darby I'm on vacation - I'm sure Walt will chime in to help you ;-)
Darby,
Using the Date as an example, this trigger doesn't change the variable Date; it just sets it to what it already is, so there is no change when you drop the shape:
If she were here and weren't out gallivanting around, and having fun (I hope), Wendy would recommend to you that you use a true/false variable to indicate whether the shape is dropped on the right spot. Set it's default value to False, then change it to True when the object is dropped on the right rectangle:
Then the condition on the submit button can read:
If DateCorrect = True and NumberCorrect = True and ...
She usually gives good advice, so I'd try that if I were you.
Thanks Walt - you know my thinking too well. I'm on the Transalpine train out of Christchurch NZ so yes having fun - bye😎
It worked! Thank you both for your help :) Wendy enjoy vacation!
Great news Darby! Good luck with your project ;-)
This discussion is closed. You can start a new discussion or contact Articulate Support.