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

Please help..."Adobe Acrobat 9 Pro" Calculate

CooM
Registered: May 30 2010
Posts: 3

In file 123.pdf showed feilds "Text005_045" value = 500
Feilds "Text005_046" value = 200

formular

var f = this.getField(Text005_045);var g = this.getField(Text005_046);
event.value = Math.round(f.value-g.value);

It's not working Somebody help What's wrong?

verry improtant ===>
my experience is Financing person I dont know JavaScript and My English is so poor,
BUT I need Help...!?

My Product Information:
Acrobat Pro 9.3.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2399
You need to place quotes around the names of fields, like so:
var f = this.getField("Text005_045");var g = this.getField("Text005_046");event.value = Math.round(f.value-g.value);

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

CooM
Registered: May 30 2010
Posts: 3
Thank you sir,....
Thanks too much...