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

Big bug or feature?

Community Expert ,
Jan 23, 2025 Jan 23, 2025

JavaScript scripts run even when fields are locked (read-only).
Have I missed something, or is Acrobat becoming unusable?

In the attachment, both fields are read-only, try it...

 

 


Acrobate du PDF, InDesigner et Photoshopographe
TOPICS
Crash or freeze , Create PDFs , General troubleshooting , JavaScript , PDF forms
2.1K
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 ,
Jan 23, 2025 Jan 23, 2025

I can't get any interaction with these read-only fields, as it should be.  When you hover, does the hand turn into a pointing finger?

 

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 ,
Jan 23, 2025 Jan 23, 2025

You mean UI related scripts. Obviously value related scripts, such as calculations need to run when a field is readonly. 

 

If a field is readonly it should not receive UI events. If it does then that is a bug.   

I'm not seeing any issue with your file. No scripts are being run.  

I'm running 2024.005.20320 64 bit.

 

 

 

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Jan 23, 2025 Jan 23, 2025

See this screen record.

 

Capture_2501232130.gif


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Jan 23, 2025 Jan 23, 2025

Something's definitely wrong at your end.  I have no interaction with the fields.  My cursor remains as the hand when I hover on the fields.  When fields are not read-only it turns into a pointing finger for the check box and a horizontal line for the text field, like in your video.  My version is 24.00420272

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 ,
Jan 23, 2025 Jan 23, 2025

I'm getting partially similar results. The first field is not triggering anything, as it should, but the second one does. I can click into it and the caret appears, although I can't type anything into it. And when I click out of it the border turns red. I have version 2024.005.20320 (32 bits) on Windows 10.

 

PS. Why isn't the version number copiable from the About dialog? So annoying!

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 ,
Nov 20, 2025 Nov 20, 2025

You can copy it in the console by running app.formsVersion.

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 ,
Jan 23, 2025 Jan 23, 2025

Did you add the fields in Acrobat, or using some other tool?

I see the Producer is "abracadabraTools DC - www.abracadabraPDF.net"...

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 ,
Jan 23, 2025 Jan 23, 2025

I just confirmed that both the On Focus and On Blur events are triggered on Read Only fields, even if created in Acrobat. I don't know if that was also happening in the past, but it seems like a bug to me.

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 ,
Jan 24, 2025 Jan 24, 2025

Did you add the fields in Acrobat, or using some other tool?

I see the Producer is "abracadabraTools DC - www.abracadabraPDF.net"...

This is because this test file was created using my abracadabraTools (Acrobat plugin).

But the same issue applies to all PDFs, whether created from Word, InDesign, Acrobat or other sources.


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Jan 26, 2025 Jan 26, 2025

I've just got my iMac back (which I had upgraded at Apple) and Acrobat is working as expected.
That's reassuring for my client, but I don't understand why it doesn't work properly on my PC, especially as I reinstalled Windows 11 and all the Adobe applications just last week following a crash.

 

If anyone has any ideas, I'd be grateful.


Acrobate du PDF, InDesigner et Photoshopographe
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
Adobe Employee ,
Feb 03, 2025 Feb 03, 2025

Hi @Zesty_protector0195

 

I hope you're doing well, and we apologize for the delayed response and the trouble. 

 

This has been reported to the product team, and they are currently investigating the root cause. We will share an update with you soon.

 

Thanks,

Anand Sri.

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 ,
Feb 03, 2025 Feb 03, 2025

Thank you


Acrobate du PDF, InDesigner et Photoshopographe
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
Adobe Employee ,
Mar 06, 2025 Mar 06, 2025

Hi JR,

 

Could you please check with the latest version of Acrobat and see if the script is running or not?

 

Thanks,

Anand Sri.

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 ,
Mar 06, 2025 Mar 06, 2025

Hi AnandSri

 

The issue remains the same after updating.

 

Capture_2503061515.png


Acrobate du PDF, InDesigner et Photoshopographe
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 02, 2025 May 02, 2025

Hi AnandSri

Is there any hope that this bug will be fixed one day soon?
After several updates, I'm at version 2025.001.20474 and nothing has changed.


Acrobate du PDF, InDesigner et Photoshopographe
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
Adobe Employee ,
Aug 28, 2025 Aug 28, 2025

Hi @JR Boulay

 

I am sorry for the delayed response. The product team is able to reproduce the issue and is working on a fix. It will be available in the coming future release.

 

Thanks,

Anand Sri.

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 ,
Oct 29, 2025 Oct 29, 2025

Two months later, this bug still hasn't been fixed!

 

Capture_2510291253.png


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Aug 30, 2025 Aug 30, 2025

Great!


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Nov 12, 2025 Nov 12, 2025

Hi @AnandSri 

Still not fixed in version 25.001.2084x

😞


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Nov 20, 2025 Nov 20, 2025

Hello @AnandSri

When will this very annoying bug be fixed?


Acrobate du PDF, InDesigner et Photoshopographe
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 ,
Nov 20, 2025 Nov 20, 2025

It's very difficult to solve. You have to add an entire IF-condition to the On Focus and On Blur events...

 

if (FIELD.readonly==false) {

// execute associated code

}

 

No wonder it's taken nearly a year to implement it. </s>

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
Adobe Employee ,
Dec 04, 2025 Dec 04, 2025

Hello @JR Boulay

 

The update received from the product team is: " Javascript is still allowed to run even if the field is read-only. Setting a field to read-only prevents the user from modifying the value, but does not block events from firing. Read-only fields can still receive these events because they are still interactive elements. Do you see a change in field value as well in case of readonly fields?" 

 

Regards,

Anand Sri.

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 ,
Dec 04, 2025 Dec 04, 2025

@AnandSri ,  It is a standard, and I think pretty obvious operating behavior that "disabled" fields do not trigger mouse events on any platform. In the PDF context, Read Only is the same as disabled.  So, for example, would you expect to be able to type into a disabled text field? or be able to push a disabled button?  No, of course not. To suggest that such a thing is an insult to our intelligence. 

JR is correct that in previous version, no mouse events were triggered for ReadOnly fields.  I've never seen this, and am not experiencing it now. So whatever is happening on JR's computer is an anomaly.  

 

Thom Parker - Software Developer at PDFScripting
Use the Acrobat JavaScript Reference early and often

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 ,
Dec 04, 2025 Dec 04, 2025
LATEST

I have never experience this issue myself.  Just tested again and it is the same as my response on Jan 23 (above) of this year.  There should definitely be no possible interaction with read only fields (That is, in fact, the very definition of read only).  @JR Boulay , when you tab through your fields, does it stop on the read only fields?  They should be skipped.

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