Skip to main content
Participant
July 22, 2021
Answered

Delete form field across multiple files

  • July 22, 2021
  • 1 reply
  • 986 views

I have 11 fields (field names below) that I need to delete out of 500+ PDFs. I found a java script to clear a single line from a single file but am having trouble doing it in "bulk". 

 

I am sure there is a way to combine these into one script that handles all the variables and run it across all 500 PDFs in a single clip. 

 

Can anyone offer me a little guidance on this? I am stuck! 

 

FT
MILE
EA
OUNCE
2Person
Fogging
TotalStorage
Canvas in Boat
Winter Work 1
Winter Work 2
Winterized 1
This topic has been closed for replies.
Correct answer try67

If you have Acrobat Pro you can do it using the Action Wizard and a simple script, like this:

 

this.removeField("FT");

this.removeField("MILE");

etc.

 

Don't forget to add a save command after the command that executes this script, though.

Then run the Action on your files.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 22, 2021

If you have Acrobat Pro you can do it using the Action Wizard and a simple script, like this:

 

this.removeField("FT");

this.removeField("MILE");

etc.

 

Don't forget to add a save command after the command that executes this script, though.

Then run the Action on your files.

NSceggellAuthor
Participant
July 22, 2021

Awesome... I got that all set now when I run the action it forces the java script up and i have to click OK for each file.... does anyone know a way to bypass needing to click OK on the java script menu when running the action on multiple files? 

NSceggellAuthor
Participant
July 22, 2021

Got it! I just missed the "prompt user" check box!