Expand my Community achievements bar.

greying out text

Avatar

Former Community Member
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

Avatar

Former Community Member
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";