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

Division in Acrobat Pro 8

ceekym
Registered: Mar 19 2010
Posts: 31
Answered

OK, here's what I "specifically" need...
Field "Text1" must = the sum total calculated in field "Text7.4" ÷ 12

In other words, in my PDF form, there are 4 fields that are formatted to add up to give a sum total in field "Text7.4" (Text7.0, Text7.1, Text7.2, Text7.3)... Then, the value that appears in "Text7.4" must be automatically divided by 12 and populated in field "Text1"

Can anyone write the code for that calculation?

My Product Information:
Acrobat Pro 8.0, Macintosh
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
[img]http://imagesinsolites.free.fr/parkimages/division-1269070593101.jpg[/img]

;-)
ceekym
Registered: Mar 19 2010
Posts: 31
Nice try... That's what I thought. Unfortunately, it does not work. Any other suggestions?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You can not use special characters in like the '.' in field names that are used in the 'simplified field notation'. You will need to use the 'Custom JavaScript calculation'.
// divide the value of field Text7.4 by 12event.value = this.getField("Text7.4").value / 12;

George Kaiser

ceekym
Registered: Mar 19 2010
Posts: 31
This is perfect... You are a "prince" among men! :)
Merlin
Acrobat 9ExpertTeam
Registered: Mar 1 2006
Posts: 766
Sorry, I forgot that "detail"…
I'd never understand why Acrobat & Reader don't support dots in simplified notation. Since dots are required for the "Acrobat field naming convention"…And I'd never understand why Acrobat allow user to enter spaces and accentued/special characters in field names, since it's a big issue for managing datas (impossible to export the whole content from Acrobat8's PDF-packages & from Acrobat9's PDF-Portfolios).:-((
ceekym
Registered: Mar 19 2010
Posts: 31
Not to worry, the problem has been solved, and I'm a "happy man!"

Oh, by the way, is there any way to "save" a filled out form as a PDF file if you're just using Acrobat Reader?