Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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!

0 Replies

Avatar

Level 5

Please use this:

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

Helpful?

Kind regards Mandy