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

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments

greying out text


Not applicable
I currently have a javascript that if a section is not applicable an NA checkbox will make the whole subform background grey out. To try and avoid excessive use of toner I would like to try and just have the text for the whole section grey out. Can someone help me?
1 Reply


Not applicable
You have a large static text object and you want to change the colour of the text?

You can't change the color of a static text object at runtime, but you can change the color of a Text Field.

Use a Text Field, set the caption to None, hide the border, and put your text in this field. Then you can grey it in script (JavaScript):

TextField1.fontColor = "128,128,128";