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

Adobe Acrobat Pro DC (32-bit) Action Wizard JavaScript Actions Not Working after Latest Update

Participant ,
Jun 09, 2023 Jun 09, 2023

I started having issues using Actions after the latest update (2023.003.20201) on my Windows 10 machine. I require use of a number of different Action Wizard Actions in my job.

 

I've used the "Tooltips Remover for Acrobat XI" (Tooltips_remover_XI.sequ) action from Acrobat Actions Exchange (https://acrobatusers.com/actions-exchange/) for years, and it was working until this recent update.

 

Now when I run Action Wizard, and select the Tooltips Removal tool, I get a pop up that says

"This operation requires Acrobat to have write access to the filesystem. Do you want to allow this action?"

I selected Yes.  The action appears to run, but doesn't successfully complete the task.

The Javascript Debugger console revealed this

 

TypeError: this.getField(...) is null
7:Batch:Exec

 

 

Next I tried to run a Document JavaScript that reportedly does the same thing:

 

for (var i=0; i<this.numFields; i++) {

var f = this.getField(this.getNthFieldName(i));

if (f==null) continue;

f.userName = "";

}

 

This didn't work either. 

 

After so looking around, I tried to disable the Security(Enhanced) settings (disabled Protected Mode at start up and Enhanced Security) just to see if it was interferring. This still didn't allow for the Action to be run.

 

I'm out of ideas at this point, as I'm not sure what all changed with the last update. Any help would be appreciated as my production is slowing down as I have to manually update numerous form fields.

TOPICS
JavaScript , PDF , PDF forms
747
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 ,
Jun 09, 2023 Jun 09, 2023

What happens when you use the script?

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
Participant ,
Jun 09, 2023 Jun 09, 2023

Same issue - it doesn't change anything, and I get (I believe) the same error

TypeError: this.getField(...) is null
7:Batch:Exec
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
LEGEND ,
Jun 09, 2023 Jun 09, 2023
LATEST

I suggest you add a line to report or log the return value from each call to getNthFieldName. This will tell you both (a) which one is failing on getField (b) whether any spurious or strange entries are found.

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