Skip to main content
Participant
May 16, 2017
Answered

fields numbering

  • May 16, 2017
  • 2 replies
  • 383 views

Hello Adobe users,

I have a question regarding automatic naming of fields. The PDF file has for example 100 fields. Is there a JavaScript to name them 1 , 2 , 3 , 4  etc?

Kind Regards,

Baran

This topic has been closed for replies.
Correct answer JR Boulay

You don't need a JavaScript for this.

Create one field, name it, then right-clic it : Create multiple copies.

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
May 17, 2017

You don't need a JavaScript for this.

Create one field, name it, then right-clic it : Create multiple copies.

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
May 16, 2017

JS can't rename fields. What it can do, though, is create new fields in the same location as the old ones, with the desired names, and then delete the old fields. Doing so will remove all actions as well as special settings (such as Format, Keystroke, Validation, Calculation, etc.) associated with those fields.

Participant
May 16, 2017

I would like to give that a try. How can I do this?

try67
Community Expert
Community Expert
May 16, 2017

Read the documentation of the addField and removeField methods of the Document object.