Skip to main content
September 25, 2019
Question

How to rename form fields using javascript?

  • September 25, 2019
  • 3 replies
  • 3604 views

I made a PDF with over 150 fillable form fields by using create multiple copies option.

Field name is like NC.0, NC.1, NR.0, NR.1 etc

I want to remove "." dot from all field name. Like NC0, NC1, NR0, NR1 etc

 

Is there any easy way I can bulk rename all of my form fields?

File attached.

 

Thanks so much,

Ebnul

    This topic has been closed for replies.

    3 replies

    JR Boulay
    Community Expert
    Community Expert
    September 25, 2019

    Web browsers are poor readers of interactive PDFs.
    It's a bit like asking Acrobat to keep the interactivity of an HTML page.
    😉

    Acrobate du PDF, InDesigner et Photoshopographe
    JR Boulay
    Community Expert
    Community Expert
    September 25, 2019

    Acrobat Javascript can't change the names of form fields.

    And in this case the Acrobat UI cannot too.

     

    Why do you want to removes dots?

    It's useless, you will lose the ability to make simple additions (sum of NRC parent field)…

    Acrobate du PDF, InDesigner et Photoshopographe
    September 25, 2019

    Yes I know.

    This form works perfectly in adobe reader.

    But in google chrome after filling some value in one column all other field shows filled in print preview.

    And I found this happened for the field name.

     

     

    Thanks

    Bernd Alheit
    Community Expert
    Community Expert
    September 25, 2019

    Acrobat Javascript can't change the names of form fields.