Skip to main content
This topic has been closed for replies.
Correct answer Thom Parker

I think he means in a dialog object

And yes you can, just use the dialog.load function. Same as it's used in the "initialize" function

1 reply

Joel Geraci
Community Expert
Community Expert
January 30, 2018

You can't use Acrobat JavaScript to change the name of a field. However, you can collect up all the properties of a field, delete it, create a new field with the name you want and apply the properties of the old field to the new field.

Thom Parker
Community Expert
Thom ParkerCommunity ExpertCorrect answer
Community Expert
January 31, 2018

I think he means in a dialog object

And yes you can, just use the dialog.load function. Same as it's used in the "initialize" function

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
January 31, 2018

Are you sure about that? The name property of a static_text component can be changed in the initialize event?

I just tried it and it didn't work...