Skip to main content
Participant
January 30, 2019
Question

Filtered dropdown list

  • January 30, 2019
  • 1 reply
  • 1261 views

How do you filter a dropdown list based on user input. Say, the countries list. when the user types either "a" or "A" the dropdown list should list all country names starting with "A". Usage in standard PDF Form and not in Lifecycle Designer form. Thanks.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 30, 2019

From my experience you can't do it with just the dropdown field alone. You need an extra (text) field to act as the "filter".

When the user enters something in that field you can use the validation event to change the items displayed in the dropdown.

I've actually created a (paid-for) tool that sets it all up for you, if you're interested. You can find it here: Custom-made Adobe Scripts: Acrobat -- Create Live Filtered List

SW2MSKAuthor
Participant
January 30, 2019

Thanks.

Thom Parker
Community Expert
Community Expert
January 30, 2019

Programming lists can be complicated. You can find lots of information and samples at these links:

https://www.pdfscripting.com/public/List-Field-Usage-and-Handling.cfm

https://acrobatusers.com/tutorials/list_and_combo_in_lc

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