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

Form field names

mashton
Registered: Mar 31 2007
Posts: 2

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?

My Product Information:
Acrobat Standard 4, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You want code entry to be easier. I can understand that. LiveCycle Designer has an auto-completion feature that makes code entry somwhat easier in that tool, even for field names. Unfortunately code entry in Acrobat is pretty much the way it's always been and probably won't change.

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