0
Create A Button To Clear All Fields On A Form
New Here
,
/t5/acrobat-discussions/create-a-button-to-clear-all-fields-on-a-form/td-p/13491419
Jan 14, 2023
Jan 14, 2023
Copy link to clipboard
Copied
I need to create a button that will automatically reset all fields to their initial state (i.e., clear all number, text, date and checkboxes, and return dropdowns to their default selections).
Any help would be greatly appreciated.
TOPICS
How to
,
JavaScript
,
PDF forms
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/create-a-button-to-clear-all-fields-on-a-form/m-p/13491603#M394558
Jan 14, 2023
Jan 14, 2023
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/create-a-button-to-clear-all-fields-on-a-form/m-p/13491748#M394563
Jan 15, 2023
Jan 15, 2023
Copy link to clipboard
Copied
Have it execute this JS code:
this.resetForm();
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
/t5/acrobat-discussions/create-a-button-to-clear-all-fields-on-a-form/m-p/13491861#M394567
Jan 15, 2023
Jan 15, 2023
Copy link to clipboard
Copied
Answer in image.
Acrobate du PDF, InDesigner et Photoshoptographe
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/acrobat-discussions/create-a-button-to-clear-all-fields-on-a-form/m-p/13492299#M394585
Jan 15, 2023
Jan 15, 2023
Copy link to clipboard
Copied
The problem with doing it like that is if you add fields, or rename some existing ones, after you add this command, it doesn't apply to those new/edited fields.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

