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.

Code for changing a TextField BackGround color?

Avatar

Level 3

Hello again!

I can´t find anywhere the code for changing the background color of a TextField, anyone knows?

I tried:

    

     TextField.border.fill.color.value = "255,255,255";      // doesn´t change bg color

     TextField.caption.font.fill.color.value = "255,255,255";     // doesn´t change bg color

     TextField.value.rectangle.fill.color.value = "153,153,153";      // doesn´t change bg color

Bur none of them works!

3 Replies

Avatar

Level 5

Please use this:

xfa.resolveNode("TextField.ui.#textEdit.border.fill.color").value = "0,255,0";

Helpful?

Kind regards Mandy