To get the display value of dropdown

Hi

I am displaying a dropdown inside a dynamic form. On click of a button i am getting the value of the selected item in the dropdown. The getValue() method returns the data value rather than the display value. I want to get the display value of the dropdown. How can i get the display value.

How do you get the display value? You call getDisplayValue.

Please, please start using the search features of the documentation. If you continue to ask questions like this, sooner or later we have to start deleting posts in order to keep the quality of the forums content high.

Hi Isomorphic,

Thanks for the reply…

I tried getDisplayValue before posting my question. I am getting JavaScript error saying “object doesn’t support this property or method”… Thats why i posted in forum thinking i may be wrong. Let me check why i am getting JS error and then get back to you.

regards
Triumph

Hi Isomorphic,

Earlier i did not set the “ID” for the select item in the form. After setting ID i am able to call getDisplayValue() method and get the required data.

Thanks a lot