Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Drop down list values

Avatar

Former Community Member
hi,



i have a combo box, which has text (in the text field) and abbreviations (as the value) under the Binding tab.



i want the text to display initially (which is what it's doing now), but once selected, i only want to show the abbreviation.



i am unable to find a way to set the text to it's rawValue (which is the value aka abbreviation)



Thanks!
1 Reply

Avatar

Former Community Member
The only way to accomplish that is to clear out all values and set the dropdown again with your abbreviations. When the user accesses the list again they woudl only see abbreviations.



Another way woudl be to have a matching list with abbreviations in it hidden. When the user makes there selection on the original list you could hide the original list and make the hidden list visible. This woudl only work on the exit event of the original list.