Link to home
Start Free TrialLog in
Avatar of BobArnett
BobArnettFlag for United States of America

asked on

Selecting a lot of Adobe Acrobat X form fields to sum.

I have an eight page form that has a total of about 150 fields. I need to make a sum field for about half of the fields. I'm finding the task of selecting the fields one at a time in the calculate tab rather daunting since the fields all have rather unhelpful names i.e. BidPage12.1, so it is difficult to figure out which field names are the ones I need to include. Is there some trick I need to know to make this a more simple task?
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

The name "BidPage12.1" suggests that there is some structure to the form. Is there a common pattern to the field names that you need to include in your calculation?

If there is a structure as far as the layout on the form goes, you could iterate over all form fields in a JavaScript program and select those fields that are to be included in the calculation, and then let the JavaScript generate another line of JavaScript that you could then use as your field calculation script to compute the sum.

Do you have any JavaScript experience?
Avatar of BobArnett

ASKER

Wow, I'm so sorry about not getting back to this. We had a major virus attack and I've been battling it for about a month. Now, about the comment to my question: Unfortunately, I do not have java experience but also there is really no pattern to the field names. I created the fields rather willy-nilly.
ASKER CERTIFIED SOLUTION
Avatar of Karl Heinz Kremer
Karl Heinz Kremer
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rumorandfolly
rumorandfolly

I tried to do this by copying the script above, but got an error:  Syntax Error: illegal character 2: at line 3