Expand my Community achievements bar.

Need HELP!!!!!! listbox javascript adobe

Avatar

Level 1

Hi

I am using Adobe Live cycle designer with javascript adding items to list box as

listbox.addItem("test","1");

while retrieving the lisbox values... am using

oField.items.nodes.item(k).value

so I am getting output as "test"

now I want to retrieve 1..

i tried using

oField.items.nodes.item(k).text

but this didnt work

Please suggest.

Also reply me to karthika.somayajula@accenture.com . thanks

4 Replies

Avatar

Level 10

Use rawValue to get the value from the ListBox..

oField.items.nodes.item(k).rawValue

Thanks

Srini

Avatar

Level 1

Thanks for your reply srini.

But when I use rawValue, it says undefined.

any other ways?

if you have livedesigner, could you please try this sample.. no idea if there is any version issue too

but i can say for all other fields am using rawValue only, i am able to retrieve the values too...

Avatar

Level 10

You can send your form to LiveCycle9@gmail.com so I can have a look at it..

Thanks

Srini

Avatar

Level 10

Here is the corrected form.. I placed an other button for my changes..

https://acrobat.com/#d=66e*TGUARflifDaCny203A

Let me know if this helps.

Thanks

Srini