I have a Visualforce page created on a custom object. This page is related to a list button as"edit all". When user clicks on this button for editing the VF page, it should show the editing field label names in red color. Any suggestion plz.
I have a Visualforce page created on a custom object. This page is related to a list button as"edit all". When user clicks on this button for editing the VF page, it should show the editing field label names in red color. Any suggestion plz.
Best Answer
There are several different ways you can do this, take a look at the help docs here.
The above example should work if you wanted to change all of your labels to red, something like this:
The above here would work if you were using the
<apex:outputLabel>
tag and could use the styleClass="redText", something like:EDIT2: Similar to the above example for columns you could also use headerClass to modify the style:
Another way that I've seen it done is to create the style and just put the tags in the labels themselves, something like:
EDIT: This also works with headers in combination with facets like this: