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

Filtered dropdown list

New Here ,
Jan 30, 2019 Jan 30, 2019

Copy link to clipboard

Copied

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.

TOPICS
Acrobat SDK and JavaScript , Windows

Views

1.1K

Translate

Translate

Report

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 30, 2019 Jan 30, 2019

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
New Here ,
Jan 30, 2019 Jan 30, 2019

Copy link to clipboard

Copied

Thanks.

Votes

Translate

Translate

Report

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 30, 2019 Jan 30, 2019

Copy link to clipboard

Copied

LATEST

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 PDFScripting
Use the Acrobat JavaScript Reference early and often

Votes

Translate

Translate

Report

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