Getting field names in Acrobat forms
When I create a form in Acrobat I give it a name in the Field Properties dialogue box. What I'd like to be able to do is retrieve that name in the Javascript actions I assign to that form without having to retype it. Is there a function which automatically returns the name of the field?
If you need to aquire arbitrary field names at runtime you can use the "doc.getNthFieldName()" function.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script