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

Auto-Complete Text Box Entry When it Matches a Pre-Defined List Item

Community Beginner ,
Mar 24, 2016 Mar 24, 2016

I'm designing a pdf form in Acrobat; and I want to set up a text box that draws from a pre-set list of choices, the way a combo box does; but I don't want the form to actually display the drop-down list- I just want it to use the list as a source. What I would like is a setup where, if the person entering the data starts typing something into the text box that matches something on the list, the box will "suggest" the list item (the way Google does when you start typing in a search string and it anticipates where it thinks you're going with it), and give the user the opportunity to select the suggestion and populate the field with it; but if the user enters something that does not match anything on the list, the text box will allow the user to enter whatever they want (but it will NOT then add that entry to the items list, it will just store it in that one instance of the text field).

Example:

Suppose I have the following list list items underlying my text box:

Boston Fire Department

Boston College Library

Philadelphia Superdome

San Francisco Bridge Authority

Houston Chicken Costume Emporium

Kansas City Family Values Center.

If the user starts typing "Boston", I would like the box to "suggest" the first matching item on the list, which is "Boston Fire Department", and if the user selects it, then the field gets populated with "Boston Fire Department"; however as soon as the user types as far as "Boston C-", then the box changes the suggestion to "Boston College Library", and the user can then select that value to populate the box if they want to. But if the user is trying to type "Boston Copper Factory", then as soon as the typed string gets beyond anything that matches the underlying list, the box will stop making suggestions and just let the user enter whatever it is they want to enter into the box.

Does that make sense? Is this doable in Acrobat?

TOPICS
Acrobat SDK and JavaScript , Windows
416
Translate
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 ,
Mar 24, 2016 Mar 24, 2016

Not really. There's no mechanism that I can think of in Acrobat for such a "suggestion", unless you use another text field and create a button that copies the value from that field to the main one, or something like that. But that would be awkward, I think.

I don't really understand why not use a drop-down field with those options, and set it to also allow custom user input, so the user can enter a different value into it, if they wish to. Seems much simpler and more straight forward to me...

Translate
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 Beginner ,
Mar 24, 2016 Mar 24, 2016
LATEST

I agree with you fully on that point; and I will go back to the client with it. And anyway, that's what I figured, but there was no harm and throwing it out there. I've certainly been surprised before.

Thank you for your quick response. Much appreciated.

Translate
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