Adjusting variable based on text entry box values
Aug 09, 2013
I have a simulation setup from a screen recording slide in test mode. I had to delete the interaction due the interactions and original quiz variables due to a need to customize the simulation. I am trying to add a point to my variable %totalscore% if the user enters any of the acceptable values for a text entry field (Cost) on the slide and then clicks on a hotspot (the Save button). However, it never adds the point.
I think it might have something to do with the order of triggers and that the variable for the text entry field is not set until it looses focus. Does anybody know a work around or see something that I'm missing? Here's a screenshoot below.
4 Replies
I have just had a play and cannot replicate the problem, I can build the same thing and it works, sorry cannot help.
Perhaps you could post the slide?
Hmm... I've uploaded copied the slides over to a new project, and it's still having the issue. I've uploaded it. At the bottom of the slide there is a text box that displays the %totalscore% variable. Notice that it doesn't change when you enter the text entry and click save. If the enter equals 50 it should be +1 and if it doesn't it should be -1. Thanks for trying to help.
it is because of the OR statements on the minus trigger because one of those will always be true
if I type 50 it will add 1 then subtract 1 because of the OR statements
delete the second trigger and you will see that it increments
If I type in 1 and press save it subtracts 1
Phil,
Thanks! I guess the logic just worked in my head. That proves that another set of eyes is sometimes all it takes.
This discussion is closed. You can start a new discussion or contact Articulate Support.