cancel
Showing results for 
Search instead for 
Did you mean: 

How to get key from dropdown list

Former Member
0 Kudos

Hi experts:

I encounter a problem in adobe form.

I use dropdown list ,the dropdown list item like this:

Text value

Text1 1

Text2 2

Text3 3

Text4 4

Text5 5

....... .......

Now i want get the value when i select the dropdown list, i use JS code "xfa.event.newText", when i select "Text1" from dropdown list in find i only get the Text and can not get the value "1". How can i get the value ?

Thank a lot !

yours zunxian

Accepted Solutions (0)

Answers (4)

Answers (4)

OttoGold
Active Contributor
0 Kudos

Hello,

maybe this thread can help:

or have you found any solution yourself? Can you please share your solution with us?

regards Otto

NoJo
Active Participant
0 Kudos
xxxxxxxxxx.rawValue = this.boundItem(xfa.event.newText);

change event of drop down list box, or exit?

Edited by: Norbert Prager on Jan 17, 2010 8:31 PM

OttoGold
Active Contributor
0 Kudos

Have you achieved your goal? If so, please provide useful that may be useful for the others and close the thread, Otto

chintan_virani
Active Contributor
0 Kudos

In th exit event of the dropdown write the following code in JavaScript.

xfa.host.messageBox("Sel value is    "+DropDownList1.rawValue);   // DropDownList1 is name of my dropdown

Chintan