Copy link to clipboard
Copied
Please, how to specify a default value to a field using a variable / calculate / script?
Every field (except for buttons and signatures) has a "defaultValue" property that can be set, like this:
this.getField("Text1").defaultValue = "This is the default value of this field";
Copy link to clipboard
Copied
Every field (except for buttons and signatures) has a "defaultValue" property that can be set, like this:
this.getField("Text1").defaultValue = "This is the default value of this field";
Copy link to clipboard
Copied
I did not find it in the properties of the field, so I entered into Java Script document, and it works! Thank you!
Copy link to clipboard
Copied
The default value entry is on the "Options" tab for the field properties pop-up window.
Copy link to clipboard
Copied
But there can only enter a value, not a javascript.
Copy link to clipboard
Copied
In the design of PDF, the default value is a simple string. if you want a different initial value you have to set it in a script eg on document open.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now