Answered
OK So I have a form I am creating in Adobe Acrobat 8. I want to simply have 1 field display 4% of another field. Can anyone help me with this? I have been pulling my hair out.
Cheers!
OK So I have a form I am creating in Adobe Acrobat 8. I want to simply have 1 field display 4% of another field. Can anyone help me with this? I have been pulling my hair out.
Cheers!
For example, if the source field is named "SourceField", then enter this script into the Custom "Calcuation" Script area of the destination field.
event.value = this.getField("SourceField").value * 0.04;
You can find form information on performing calculations in the tutorials on this site. Here's one:
http://www.acrobatusers.com/tutorials/2006/form_calculations
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script