These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

How to Dynamically Populate DropDownBox from TextField...Please Help!

JCASE
Registered: May 12 2010
Posts: 29

I need help with this....

Within a text field I have the following code in the change event script that should add the text to a DropDownBox.....

DropDownBox1.addItem(xfa.event.newText);

The problem is. It as each letter as a seperate item. For example, if I add "ABC" the DropDownBox adds "A" "AB" & "ABC"

What code can I use to just return the value "ABC"

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
I would use a button with a script in its click:event.

if(Textfield1.rawValue ne null) thenDropdownList1.addItem(Textfield1.rawValue);endif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs