Skip to main content
Participant
November 25, 2023
Answered

Strange Connected Dropdown with no Javascript

  • November 25, 2023
  • 3 replies
  • 2659 views

I have a PDF with two dropdown and both are connected somehow.
If you select any value from first dropdown then based on that a list of values will be inserted into second 

dropdown to select from.
I have checked everying, there is no javascript in both dropdown and there is also no document level javascript in the pdf file.
Can anyone tell me how this is working ?

I am attaching the PDF, Please have a look
Thanks for your help

This topic has been closed for replies.
Correct answer try67

It's a pretty straight forward case statement.  No AF or other obvious Acrobat internal function calls. 

It is indeed odd.

 


It does contain "AF", actually, in these strings:

 

"Ventilation - HAF (Units: No)", "HU-Ventilation - HAF (Units: No)",

3 replies

try67
Community Expert
Community Expert
November 27, 2023

To solve this bug of Acrobat move the code to a function in a doc-level script and call it from there, instead of putting it directly under the field's action.

Bernd Alheit
Community Expert
Community Expert
November 26, 2023

At the internal you can following script:

Thom Parker
Community Expert
Community Expert
November 26, 2023

There 's a keystroke (i.e. commit) script .  For some reason it's not being shown.  Very Odd. The Dropdown also a field property that shouldn't have been set for a combobox.  But I don't think that has any affect. 

Whatever application built this PDF (and it's not Acrobat) did something screwy. 

 

 

 

 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
try67
Community Expert
Community Expert
November 26, 2023

Acrobat hides some scripts it considers to use "internal" code. This usually happens when they contain the string "AF" in them, but there might be other reasons, too.

Thom Parker
Community Expert
Community Expert
November 27, 2023

It's a pretty straight forward case statement.  No AF or other obvious Acrobat internal function calls. 

It is indeed odd.

 

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