Skip to main content
Klook
Participating Frequently
Mar 1, 2023 4:10 PM UTC
Question

Possible? Expanding dropdown menu view so more content is visible?

Hi guys,
I am struggling with dropdowns. When I expand them, they only show 4 items and also they're not scrollable, which is extremely annoying and not user-friendly. Is there a way to fix that?

This topic is closed to new replies. Start a new post to keep the conversation going.

9 replies

JR Boulay
Community Expert
Community Expert
Mar 2, 2023 9:09 AM UTC

You should consider using a JavaScript popup menu:

https://opensource.adobe.com/dc-acrobat-sdk-docs/library/jsapiref/JS_API_AcroJS.html#popupmenuex

 

Translate
Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
Mar 2, 2023 10:54 AM UTC

This has its own issues, though. For example:

- The list can't be scrolled with the mouse.

- You can't jump to an item by pressing the first letter in its name.

- The selected value is not saved anywhere, unless you copy it in your script to a separate field.

Translate
Thom Parker
Community Expert
Community Expert
Mar 1, 2023 7:50 PM UTC

Are you on a Mac?  If so, then there is a known bug with dropdowns on the Mac, which is that limited entries are shown. A couple of people on this forum have reported only seeing one dropdown entry. 

 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Klook
KlookAuthor
Participating Frequently
Mar 1, 2023 9:27 PM UTC

Yes, I'm on a Mac, but I had it tested by a friend on Windows and he saw the same.

Translate
try67
Community Expert
Community Expert
Mar 1, 2023 4:45 PM UTC

A drop-down should show something like 8 items in the list, and should be scrollable. Are you sure this is a drop-down field? Can you send a screenshot (preferably full-screen) of what you're seeing?

Translate
Klook
KlookAuthor
Participating Frequently
Mar 1, 2023 9:29 PM UTC

Is it possible to modify the look & behaviour? Yes, it is a dropdown list. Unfortunately I can't share the whole document, but here's what every dropdown on the PDF looks like. Thanks for your help (again)!

Translate
Klook
KlookAuthor
Participating Frequently
Mar 1, 2023 9:32 PM UTC

Oh and to specify: I can scroll it, but only by clicking on the arrows, not with the mouse...

Translate
Bernd Alheit
Community Expert
Community Expert
Mar 1, 2023 4:38 PM UTC

Dropdowns are scrollable.

Translate