Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

How do you change a textField 'background fill' to NONE at runtime

Avatar

Level 2

> this seemingly simple problem has been perplexing me forever..

I understand how to change the txtField.fillColor to any value but NONE / no fill

to further illustrate:

BLACK IS: txtField.fillColor = "0,0,0"

WHITE IS: txtField.fillColor = "255,255,255"

but what is NONE or NO FILL?

is there a different method/scripting property used to 'remove' fillColor??

i'm baffled - please help!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi there,

fillColor is a quick access to its property, the real property hides in the border.fill

to hide the fillColor you need to access border.fill with the following

to remove the borders as well, you need to use this line

if you want to show back the fill, use the value visible and same thing for the borders

Hope this help!

View solution in original post

1 Reply

Avatar

Correct answer by
Level 10

Hi there,

fillColor is a quick access to its property, the real property hides in the border.fill

to hide the fillColor you need to access border.fill with the following

to remove the borders as well, you need to use this line

if you want to show back the fill, use the value visible and same thing for the borders

Hope this help!