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

Scripting Conflict With Field Names

DWalter
Registered: Jan 3 2007
Posts: 6

I have a form with the following fields: Item Code, Desc, Piece per Unit, Qty Needed, Cost per Unit, and Total Cost. We have named each of the Qty Needed fields (numQty_xxx) where xxx is the part number. Here are two of our part numbers: 90014 and 90014-000-2919. My script works perfect for 90014, but when I get to those like 90014-000-2919, the dashes between each set of numbers acts as a subtraction instead of a dash mark. Here is the script I am using: calculate*numQty_90014*unitCost Lang=FormCalc Run At=Client. How can I get this to work?

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are rules for creating form field names. Obviously you have to follow the rules to get it to work, i.e. don't use dashes in your field names.

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script