Expand my Community achievements bar.

Can I display or export a list of all field names on a PDF

Avatar

Former Community Member
In Designer 7, is there a way to display all field names (text fields and checkboxes)? Or is there any way to obtain a list of all field names used on a form?



In Acrobat 7, all the field names used on the PDF will appear when you select the Text Field Tool. However, this will only happen when the fields were added using the form tools in built into Acrobat. These forms tools are not accessible in Acrobat when the PDF was created using Designer.



For a PDF created with Designer, you can hover over a field in Acrobat to have a ToolTip display the field name. Unfortunately, this can only be done one field at a time.



Thanks in advance for any info.
2 Replies

Avatar

Former Community Member
Here is an example of how to get all the form objects' names within a node in the hierrachy. For a more complex form (with subforms), you will need to check to see if the node is a container. If it is, you will to use this code below to iterate that node.



var objNode = xfa.resolveNode("xfa.form.form1.page1")

for (var i = 0; i < objNode.nodes.length; ++i)

{

app.alert(objNode.nodes.item(i).name);

}



Here is an example:



http://66.34.186.88/LiveCycleSamples/.3bbb371.pdf