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

Make a Drop Down List Grayed Out

Avatar

Former Community Member
Hi!



Can anyone tell me if it is possible to make a drop down list grayed out. I don't really want the list to be invisible just grayed out until the user needs access to it.



Thanks in advance!
1 Reply

Avatar

Level 6
To disable and "grey-out":

DropDownList1.access = "readOnly";

DropDownList1.ui.choiceList.border.fill.color.value = "210,210,210";



To enable and undo the grey-out:

DropDownList1.access = "open";

DropDownList1.ui.choiceList.border.fill.color.value = "255,255,255";



Jared Langdon

www.jlangdon.ca