Forum Discussion

WilliamRyan-dba's avatar
WilliamRyan-dba
Community Member
4 years ago

Reset numeric entries with "Try Again"

Hello, I have a quiz question that looks at a numeric entry field that in reality, is the sum of two other numeric entry fields (fields 1 and 2, respectively). The two other entry fields are assigned variables "Inc_Angle1" and "Inc_Angle2", and they are summed to variable "Sum_Inc_Angle". The numeric field has as a reference "Sum_Inc_Angle". Eventually it will be a hidden field.

OK, so far so good. It's working. However, the user gets 3 chances to get the two entries (e.g. the sum of the entries) correct. I have a trigger that resets "Sum_Inc_Angle" to zero when "Try Again" is pressed. I want to also set the other numeric fields to <null> when the "Try Again" button is pressed (e.g. like when slide is initially entered).  I added  the trigger to "jump to slide" (the same slide) when "Try Again" is pressed, and the slide set to "reset to initial state" when revisiting.  However, the two numeric entry fields are not emptied, but retain their previous values. I can add other triggers to reset the initial variables to zero which kind of gets me where I want to go, but not exactly. 

Is it possible to do what I want?

 

  • Hi William,

    Thanks for reaching out and sharing what you are experiencing with your project file.

    Just to confirm, you'd like to see a null value vs. a zero value when the field is reset. Is that correct? 

    Is the zero value causing an issue in your variable results?

    • AmanyAhmed's avatar
      AmanyAhmed
      Community Member

      Reset numeric entries with "Try Again"

      I'd like to see a null value vs. a zero value when the field is reset because a zero value causes an issue in my variable results

      Is there any way to solve this problem