I would like to create the following. If the value entered in a text field is between .40 and .50 I want the first textbox to be checked automatically. However, if the value is between .2 and .375, I want the second textbox to be marked. How would I create this?
So the form looks like this:
_________(textfield where customers can enter a value between .2 -.50). So if customer enters a value between .40 and .50, i want checkbox 1 to be checked automatically and if a customer enters a value between .20 and .375, I want checkbox 2 to be automatically checked. Is this possible??
Checkbox 1
Checkbox 2
var Num = this.getField("TextNum").value
if (Num >= .40 && Num <= .50){this.getField("Checkbox 1").value = "Yes"; this.getField("Checkbox 2").value = "";}
else if (Num >= .20 && Num <= .375){this.getField("Checkbox 2").value = "Yes"; this.getField("Checkbox 1").value = "";}
else {this.getField("Checkbox 1").value = ""; this.getField("Checkbox 2").value = "";}
Hope this helps.