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

NEW to Adobe. How to sum fields plus a static number?

akenefick
Registered: Dec 16 2011
Posts: 1
Answered

I've built a simple PDF for gaming that calculates stats. However one number is a static "10" that must be added to 4 or 5 user input fields. I know how to add the fields, but I can't get the additional "10" that I need to show in the "Total" field.
 
I've never used Java and I don't know how to do this at all. Any help would be greatly appreciated. Sorry for such a "stupid" question.
 
Many Thanks in advance!

My Product Information:
Acrobat Pro 10.0, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Accepted Answer
You can use the simplified field notation option and use something like:

10 + text1 + text2 + text3 + text4

but use the actual field names. If your current field names have spaces or other non-alphanumeric characters, rename them so they don't, to make it easier on yourself.

You can also use the "value is the sum of" option by setting up a hidden text field with the default value of 10 and include it in the list of fields that are included in the calculation.

If you really want to use JavaScript, post again.