On standard Account page I have a text field,and my requirement is that Font colour of text should be change as per values entered. For eg if i enter 1 or 2, Font colur should be Red, for 3 or 4 Green.. Thanks in advance..
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
You cannot change the font color using the standard page layout, you would need to use a custom visualforce page but as an alternative you could conditionally render images in a formula see this thread here:https://developer.salesforce.com/forums?id=906F00000008wMbIAI
Well I think it is possible by embedding a Visualforce page on the standard layout to display only the fields for which you want the conditional formatting.
Or if possible use formula fields to denote images based on your criteria.
I've borowed part of this answer from here. It is possible to create a formula field, containing a custom message with a (very) large red font.
Your two options, in terms of formulas are
referencing another cell containing the error message
writing the message in the formula
Obviously you can add If conditions to your formula, based on your criteria to determine whether or not the alternative font should apply.
The syntax for these fonts is
produces (Close Date Alert is the name of my field)