D
DesignerNut
I have a form with multiple checkboxes and a textbox storing a total
number of points.
By checking a checkbox, a specific point value (say 25pts) is deducted
from the total point value (1000 pts - 25 pts) and the textbox displays
the new point value.
Points are then added back to the textbox point value if the checkbox
gets unselected.
I got the script working fine up to that point.
My question is, once a checkbox is checked, the script checks to make
sure that the total point value is not less than 0 - if it is, it will
not
allow the points to be deducted. Once that part of the script runs, how
do I make sure the checkbox stays unselected?
Currently, if I select a checkbox that has a greater point value than
what remains in the total points value textbox, I get the alert message
saying "There are not enough points." but yet allows the checkbox to
show selected anyway.
How do I tell the checkbox to stay unchecked if this error checking
occurs?
number of points.
By checking a checkbox, a specific point value (say 25pts) is deducted
from the total point value (1000 pts - 25 pts) and the textbox displays
the new point value.
Points are then added back to the textbox point value if the checkbox
gets unselected.
I got the script working fine up to that point.
My question is, once a checkbox is checked, the script checks to make
sure that the total point value is not less than 0 - if it is, it will
not
allow the points to be deducted. Once that part of the script runs, how
do I make sure the checkbox stays unselected?
Currently, if I select a checkbox that has a greater point value than
what remains in the total points value textbox, I get the alert message
saying "There are not enough points." but yet allows the checkbox to
show selected anyway.
How do I tell the checkbox to stay unchecked if this error checking
occurs?