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

Printing text field names on mapped PDF

Explorer ,
Jan 11, 2024 Jan 11, 2024

Copy link to clipboard

Copied

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

Views

828

Translate

Translate

Report

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

Copy link to clipboard

Copied

Try this:

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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? 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Have you tried it?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

@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?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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");

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Thank you @Nesa Nurani !

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

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

Votes

Translate

Translate

Report

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