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

Avatar

Avatar

XIIIX-inTVbY

Avatar

XIIIX-inTVbY

XIIIX-inTVbY

07-09-2015

> 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!

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150

Avatar

Magus069

MVP

Total Posts

1.0K

Likes

132

Correct Answer

150
Magus069
MVP

08-09-2015

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!

Answers (0)