Using a text field to filter a listbox
Hi, I am hoping to achieve a dynamic dropdown like functionality using a text field and list box.
The purpose of this is because from what i have seen, there is no functionality in Adobe or javascript templates to begin from to be able to filter a dropdown from keystroke actions.
I have seen suggestions to use a textfield for users start typing to then dynamically filter by keystroke a listbox below. they can then select from the listbox and the selection will populate the textfield. this would essentially emmulate a dropdown style.
ie. if a user typed "j"/"ja"/"jan" it would display the words "Janus" or "January" to show in the listbox.
I have found some example scripts for livecycle using xfa script connections and xml files to do this, but nothing for acrobat.
I am intermediate at javascript, but for this i dont know where to begin. I am guessing maybe to use thisgetField("").search or thisgetField("").match functionality... but i just done know where to begin.
Debating whether i will need 3 fields to complete this,
A - text field for user entry,
B - listbox for user selection which will populate A on selection
C - hidden listbox with all of the selections listed in which to populate B
If anyone has any ideas on where to get started, or reference material which could work in Acrobat it would be greatly appreciated 🙂
