Copy link to clipboard
Copied
I have a very large PDF document with thousands of text-based form fields. Though I have searched the names of every form field and didn't find any that are duplicated, my client keeps insisting some fields are populating from somewhere else in the document. They of course can't tell me what fields are auto-populating, or if it's coming from fields before or after a specific page. I can't duplicate the issue without manually testing each field. Since there are 1000’s of fields, I'm wondering if there is a way to do a search for fields that are linked, or named identically? Can anyone help?
Copy link to clipboard
Copied
I encountered a similar issue so I developed this code to identify those annoying duplicate fields. Run this code from the JavaScript Console:
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
if (f.type=="text" && typeof f.page=="object") {
console.println(f.name + ":" + f.page);
}
}
It will print out all the names of any duplicated text fields, as well as on which pages they are located, so you could track them down more easily.
Copy link to clipboard
Copied
I encountered a similar issue so I developed this code to identify those annoying duplicate fields. Run this code from the JavaScript Console:
for (var i=0; i<this.numFields; i++) {
var f = this.getField(this.getNthFieldName(i));
if (f==null) continue;
if (f.type=="text" && typeof f.page=="object") {
console.println(f.name + ":" + f.page);
}
}
It will print out all the names of any duplicated text fields, as well as on which pages they are located, so you could track them down more easily.
Copy link to clipboard
Copied
Thank you so much!!! This found 2 sets of fields with the same name! What a lifesaver!!
Copy link to clipboard
Copied
Check also the JavaScript code in the form.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more