Copy link to clipboard
Copied
I have a form that totals the number of boxes checked. They are named “Check Box1” through “Check Box24”. There were only 23 when this form was originally built and functioned properly. I now added the 24th, but it doesn’t calculate in the total. The Text Field Properties are set to “Value is the sum(+)” but when I select “Check Box24” it doesn’t save. If I click OK and go right back into Pick, it shows as unchecked again. What am I doing wrong?
__PRESENT
__PRESENT
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Try use this as custom calculation script instead:
var count = 0;
for(var i=1; i<=24; i++){
if(this.getField("Check Box"+i).valueAsString !== "Off")
count++;}
event.value = count;
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Try to reset acrobat and even PC and try again, if that doesn't help, share actual file with us.
Copy link to clipboard
Copied
Resetting didn't help, but I opened it on another computer and was able to select the check box #24. So that is resolved!
Wondering if you can help with the next bit. I don't know what tells it to highlight the correct price break when X number of boxes are selected. The first two price break blocks work fine but the last two are mixed up. Also, if all 24 are selected, the Preferred Partner logo and Congratulations text should appear. Right now they appear when 23 are selected. Can you help? File attached.
Copy link to clipboard
Copied
In the "Cost" field you have a calculation script that affect hiding/showing fields, if you look at the script you can see how many checkboxes are required to trigger each condition.
Also, if all 24 are selected, the Preferred Partner logo and Congratulations text should appear. Right now they appear when 23 are selected
The last condition is set to 23 checkboxes, you may want to change it to 24.
Copy link to clipboard
Copied
Thank you so much! That worked perfectly! Really appreciate the help.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now