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.

DDList question

Avatar

Level 7

Hi all,

I have a DDList with two items: YES, NO

Is it posible when user select YES the color to change to Green and

when user select NO the color to change to Red

Caption remains Black for both cases

Thank you

1 Reply

Avatar

Level 4

Hi,

You can write the java script in the "exit" event of the DDL as follows

if (this.rawValue == "YES")

               {

                              this.font.fill.color.value = "0,128,0";

          }

if (this.rawValue == "NO")

               {

                              this.font.fill.color.value = "255,0,0";

               }


Thanks,

Dev