These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Checkboxes

Sonja
Registered: Jun 10 2010
Posts: 2

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

My Product Information:
Acrobat Standard 9.3.1, Windows
hher411
Registered: Oct 6 2010
Posts: 3
Here is one possible basic script, Sonja:

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.