Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
6

Printing text field names on mapped PDF

Explorer ,
Jan 11, 2024 Jan 11, 2024

Is there a way to print all of the text field names on a mapped form?  I have a form that a previous employee created and I need to recreate it on a slightly different updated version, but going through every field and matching to the javascripts and bouncing to my other screen is getting tiresome...if I had a way to print the text field names it would be awesome. 

 

i did use the Use JavaScript tool to pull the All javascript strings, which tells me what named text field it belongs to, but it would be so much easier if i could match that to a printed document that had those text field names on it.

 

Any help would be appreciated!

TOPICS
PDF , PDF forms
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2024 Jan 11, 2024

Try this:

Replace the pages of the form with the pages of the updated document.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 11, 2024 Jan 11, 2024

Would that work if there are some slight differences between the two forms, i.e. the new form has some new fields.

 

Would replacing the old page with the new still retain the field mappings? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 11, 2024 Jan 11, 2024
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2024 Jan 11, 2024

Have you tried it?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 11, 2024 Jan 11, 2024

@Bernd Alheitjust did and all of the mappings came over!  You are brilliant.  This is definitely a life saver.  I would still love to be able to print every text field on a form - visible and hidden.  Do you know if there is a way to do that?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2024 Jan 11, 2024

This will print text field names to console:

var cNames = [];
for ( var i=0; i < this.numFields; i++) {
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
if (f.type == "text")
cNames.push(f.name);}
if(cNames.length !== 0)
console.println(cNames.join("\n"));
else
app.alert("There are no text fields in this file");
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 11, 2024 Jan 11, 2024

Thank you @Nesa Nurani !

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2024 Jan 11, 2024

You should try the Form Report plugin, which is part of the free abracadabraTools :

https://www.abracadabrapdf.net/utilitaires/utilities-in-english/abracadabratools_en/


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 11, 2024 Jan 11, 2024
quote

You should try the Form Report plugin, which is part of the free abracadabraTools :

https://www.abracadabrapdf.net/utilitaires/utilities-in-english/abracadabratools_en/


By @JR Boulay

JR this is Brilliant!!

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 12, 2024 Jan 12, 2024
LATEST

Thank you Thom Parker, your compliments please me more than those of a God.


Acrobate du PDF, InDesigner et Photoshopographe
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines