cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Text instead of key in a ListBox or DropDown

Former Member
0 Kudos

Hi,

I have a Listbox Country and I would like to get the Country name selected instead of key.

for example if i select India , i am getting corresponding key value for India not the actual text India.

How would i get that

I am using this.rawValue to get the key

Thanks

Bala Duvvuri

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

requirement closed.

harman_shahi
Contributor
0 Kudos

Hi Bala,

Have you tried this:

Place the following JavaScript code on the Change event of your ListBox

xfa.host.messageBox("TEST: " + xfa.event.newText);

This code should give you the actual Text for your entries.

Hope this helps,

Harman