Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
13

Clearing Only Specific Form Fields

New Here ,
May 06, 2024 May 06, 2024

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

TOPICS
Create PDFs , Edit and convert PDFs , General troubleshooting , How to , PDF , PDF forms
982
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 06, 2024 May 06, 2024
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines