Trigger only checks once?
Apr 29, 2021
By
Tony Sault
Hi heroes
I am creating a maths assessment which contains a couple of calculations on a slide. As the user completes the data boxes, I have set a trigger to check all boxes for certain conditions and if correct, will display a green tick (no clicking of a submit button as there are a couple of questions on the slide). This works once they have added the data but it they change the data in any input box, the variable still remains as true and the tick remains. How can I adapt my trigger to show the tick if all boxes are correct but to remove it if any of the boxes are changed to be incorrect?
Many thanks
8 Replies
Hi, Tony,
From what I can see in the image, you've programmed the slide to show the checkmark and "True" when the answer is correct. But you haven't programmed it to hide those items when the answer is incorrect. You need separate triggers for that.
Hi Judy
Wow, I cannot believe it was that simple. I have been pulling my hair out and trying all manner of variation of triggers and extra variables to solve this. Trigger to hide. Thank you so much.
Sorry to be a pain but I have another issue with this. The trigger to hide incorrect inputs works for all but one of my input boxes. The input is a drop down menu where the user selects a maths symbol. Each symbol is assigned a number. The correct answer is divide and this is assigned as 4. I have created a test box to show the actual variable on my screen and one to check the value of 4 is correct. However, although the variable does change to 4, the check variable does not clarify it as seen in my attached image.
Hi again, Tony,
It's hard to tell what's happening just looking at the image (though I do appreciate you providing the helpful annotations!). Since the problem only occurs when the drop-down menu is changed, the issue is probably related to how that functions.
Yeah, this is really odd as the variable clearly shows that it is set to "4", so the trigger reading that should also read it as "4". Could it have something to do with the "lose focus"?
Would it matter that the input box is a text entry box and not a numeric entry box?
Hi, Tony,
It could be related to using a text entry instead of a numeric entry. It could be related to losing focus, since that's the "when" in the trigger. But I can't tell.
I suggest you experiment with adjustments. Then, if you're still stuck, you could contact Articulate's support staff.
I think I have a solution but it may not be what was intended. I changed the "lose focus" to "when variable changes" and selected the variable in the text box. this seems to have done the trick. I did a "hide" trigger version and it all seems to work... (for the moment lol).
Thank you Judy for your replies.