Filtered dropdown list

New Here ,
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, Macintosh, Windows

Views

237

Likes

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

Filtered dropdown list

New Here ,
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, Macintosh, Windows

Views

238

Likes

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
Jan 30, 2019 0
Most Valuable Participant ,
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

Likes

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
Reply
Loading...
Jan 30, 2019 0
New Here ,
Jan 30, 2019

Copy link to clipboard

Copied

Thanks.

Likes

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
Reply
Loading...
Jan 30, 2019 0
Adobe Community Professional ,
Jan 30, 2019

Copy link to clipboard

Copied

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

Likes

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
Reply
Loading...
Jan 30, 2019 0