Copy link to clipboard
Copied
Hi all,
I am wondering if there is a setting that can be changed to allow you to only clear specified fields when using the clear form tool.
Basically my situation is that our company does inspections, which we have created a form with fields for. What I want to do is, be able to clear only certain fields so that when we complete the inspection the next year, the info has to be inputted again so people don't cut corners. But I do want specific fields that contain important info to keep that field.
Thank you
Copy link to clipboard
Copied
Sure, but only if done via a button you added. If the user uses the built-in command in Acrobat it will reset all fields.
If you're using your own button you can select which fields to reset in the settings of the "Reset a form" action when you add it. Or if you're using a script, by specifying their names as a parameter to the resetForm method, like this:
this.resetForm(["Field1", "Field2", "Field10"]);
Those are the names of the fields that will be reset, of course. You need to omit those that you want to keep from the array.