Resets the field values within a document. Resetting a field causes it to take on its default value (which, in the case of text fields, is usually blank).
Note:If the form contains signature fields, signature rights https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/Acro12_MasterBook/JS_API_AcroJSPre...are required to use the method in Adobe Reader.
(optional) An array specifying the fields to reset. If not present or null, all fields in the form are reset. You can include non-terminal fields in the array.
Select fields to be reset and reset them.
var fields = new Array();
fields = "P1.OrderForm.Description";
fields = "P1.OrderForm.Qty";
The same fields can be reset using only one line of code:
This example shows how to reset a whole subtree. For example, if you pass “name” as part of the fields array, all name fields, such as name.first and name.last, are reset.
Thanks, at Document level, below works if you are just wanting to reset one form field on open. Omitting the subtree brackets [ ]
Yes, it's possible to do that with a simple script, but you can't apply such a script with the free Reader. Do you have Acrobat? If so, which version?
is it possible to clear the fields of a form when I open a PDF document?
Trigger: Page Open
Action: Reset a form
Here are the plans and pricing. If you don't want the annual plan, paid monthly, you can get a monthly plan for $25. There is also a seven-day free trial.
That will reset the form each time you open page 1, not just when you open the file, though... For example, if you fill in some data, scroll to page 2 and then back to page 1, that data will be gone.
Reset the form at document open.