Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events

Can you change bg color on a label in livecycle?

Avatar

Level 2

‌I usually put a label on top of a rectangle box, but seems to not work when inside a subform. So i figured why not color the label box itself? Is this possible?

2 Replies

Avatar

Level 7

"fillColor" is not an available property for Text. (At least as of ES3.) I think you're stuck with wrapping that Text in its own subform which would have that property.

766713_pastedImage_2.png

As an aside, here's what happens when you try to apply the fillColor property to Text.

766712_pastedImage_1.png

Avatar

Former Community Member

Hi Tangnamofool2,

Since there are no events associated with Text, you can add the following script to the initiailize event of a Subform/Page in which the Text is palced:

form1.Page1.StaticText1.border.fill.color.value = "100,0,0"

I did this in Designer 7.1 and should work in all the versions.

Thanks,

Kumar