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

Rename a Form Field

ysegura
Registered: Feb 16 2011
Posts: 12

How to search for the existence of a form field, and if found, rename field name and posibly change some of its properties, using JavaScript?

YS

My Product Information:
Acrobat Pro 8.1.7, Windows
maxwyss
Registered: Jul 25 2006
Posts: 255
JavaScript can not rename a form field. The field name is the key to all properties of the field, and can therefore not be changed.

However, it would be possible to locate a field, read in its properties, delete it and recreate it with the new name, and applying the properties. This is quite a straightforward process. You get through most of the properties, except actions (there is no getAction() method in Acrobat JavaScript).

HTH.

Max Wyss.