Skip to main content
Participant
December 15, 2023
Answered

Calculate Value Not Saving

  • December 15, 2023
  • 2 replies
  • 2785 views

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

This topic has been closed for replies.
Correct answer defaultnwqyjyrfohx4
PDF-form.png

2 replies

Nesa Nurani
Community Expert
Community Expert
December 15, 2023

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;
Participant
December 15, 2023

Thanks so much for the reply. When I paste that into Custom Calulation Script, it immediately defaults to "Value is not Calculated". Any ideas?

Nesa Nurani
Community Expert
Community Expert
December 15, 2023

Try to reset acrobat and even PC and try again, if that doesn't help, share actual file with us.

defaultnwqyjyrfohx4AuthorCorrect answer
Participant
December 15, 2023
PDF-form.png