Input Number Variable
Hey so I am wondering if someone can help me out?
I am building a concept for a quiz where rather than selecting an answer you would be able to bet points against an answer being correct. The points bet on the correct answer get doubled, and points bet against incorrect answers are lost.
On the most part I have this working, but I have encountered a small bug that I am wondering if anyone has found a work-around for?
I have 4 Numeric entry fields - one for each answer option - these start off with '0' in the boxes, if you come to type in the box and you delete the '0' but 'forget' to type in another number it records as an error as only numbers should be in the numeric field!
Is there a way to set the variable back to '0' if the control loses focus when the box is blank?
(attached is a very rough example - if you click outside the box when nothing is in it)