Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Display value of a dropdown

Avatar

Level 3

Easy question for someone. Hard question for me. I have been trying to have a textField display the display value of a DropDown thats been populated with a script based on a radio button selection. I am having trouble having the text field display anything other then the value of the dropDown selection. I have tried the "value" instead of rawValue but am having no luck. Can anyone help me?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

When it comes to dropdowns, there are two properties that are at play. If you have specified values in the Object > Binding palette, then the .rawValue will access the bound value.

What you are after is the display value of the dropdown (eg what the user sees).

Here is an example:

http://www.assuredynamics.com/index.php/category/portfolio/accessing-bound-and-display-values-of-dro...

Hope that helps,

Niall

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

When it comes to dropdowns, there are two properties that are at play. If you have specified values in the Object > Binding palette, then the .rawValue will access the bound value.

What you are after is the display value of the dropdown (eg what the user sees).

Here is an example:

http://www.assuredynamics.com/index.php/category/portfolio/accessing-bound-and-display-values-of-dro...

Hope that helps,

Niall

Avatar

Level 3

Thanks again Niall. It's always appreciated