Highlighted

Suggestions in a dropdown field with custom user input enabled

New Here ,
Aug 20, 2020

Copy link to clipboard

Copied

Hello community,

 

I'm creating a form which concludes an dropdown field with multiple choices and custom user input enabled. How can I add autofill/autocomplete suggestions from the entry list based on the user input?

 

Example:

 

Entrylist: Test, Tree, House

User Input: Tr

Suggestion: Tree

 

Thank you in advance for your help,

regards,

Tobias

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

32

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

Suggestions in a dropdown field with custom user input enabled

New Here ,
Aug 20, 2020

Copy link to clipboard

Copied

Hello community,

 

I'm creating a form which concludes an dropdown field with multiple choices and custom user input enabled. How can I add autofill/autocomplete suggestions from the entry list based on the user input?

 

Example:

 

Entrylist: Test, Tree, House

User Input: Tr

Suggestion: Tree

 

Thank you in advance for your help,

regards,

Tobias

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

33

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
Aug 20, 2020 0
Most Valuable Participant ,
Aug 20, 2020

Copy link to clipboard

Copied

I don't think that's possible. You can maybe filter the list of items based on the user's input, but it will be tricky to implement.
If you want to be able to "filter" the list I would recommend doing it using a separate text tool, like in this (paid-for) tool I've created that does just that: http://try67.blogspot.com/2012/11/acrobat-create-live-filtered-list.html

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...
Aug 20, 2020 0
New Here ,
Aug 20, 2020

Copy link to clipboard

Copied

Thank you for your response. 

 

I quickly looked through the JS Api and didnt find a way to open the ComboBox-list by JavaScript (to show the filtered items list) - do you know a way for archiving that? 

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...
Aug 20, 2020 0
try67 LATEST
Most Valuable Participant ,
Aug 20, 2020

Copy link to clipboard

Copied

That's not possible with a script. The user will have to do it manually.

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...
Aug 20, 2020 0