Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Changing fill color of drop down list AEM 6.2 HTML5 form

Avatar

Level 3

None of the code I've found to change the fill color of a field seems to work for a drop down list. Here are some of the things I've tried:

this.border.fill.presence="visible";

this.fillColor = "255,255,148"; OR this.fillColor.value = "255,255,148";

this.border.fill.presence="visible";

Either of these change the border only, not the fill:

this.ui.oneOfChild.border.fill.color.value="255,255,148"; //border changes to yellow

this.ui.resolveNode("#choiceList").border.fill.color.value ="255,255,148";

Has anyone tackled this problem successfully?

Thanks in advance,

Laurie Murphy

1 Accepted Solution

Avatar

Correct answer by
Administrator

Try first on Browser console and once it is done there, copy the changes in intended CSS.

Sometimes, changes made in CSS/JS files are not reflected because Browser/AEM uses old cached files.

//Delete project specific folder under /var/clientlibs/etc/designs. It will remove cached JS/CSS for that project

~kautuk



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Correct answer by
Administrator

Try first on Browser console and once it is done there, copy the changes in intended CSS.

Sometimes, changes made in CSS/JS files are not reflected because Browser/AEM uses old cached files.

//Delete project specific folder under /var/clientlibs/etc/designs. It will remove cached JS/CSS for that project

~kautuk



Kautuk Sahni

Avatar

Level 3

The first time I opened the form this morning, the behavior was correct. I have tested in IE11, Chrome and Firefox. It must have been the caching.

Thank you so much for your quick response!

Avatar

Level 3

Actually, the problem turned out to be in Designer. I was checking my changes in Preview HTML and the fill color was only applying to the borders. It is still displaying incorrectly even though the deployed form is working properly in each of the 3 browsers I tested.