I'm displaying a fieldset in the Community. The fieldset contains text, checkbox and lookup fields. So, I'm using the component to display the values from different data types. The issue is that the lookup fields are displayed in Royal blue color and I'm not able to change the color. I've researched for this and found similar questions, but not specifically for a lookup field.
...
<style>
.redcolor {
color: red;
}
</style>
...
<apex:outputPanel rendered="{!displayPanel}">
<apex:repeat value="{!$ObjectType.Case.FieldSets.TestFieldSet}" var="fset" >
<tr>
<td><apex:outputText value="{!fset.label}" /></td>
<td><span style="color: red;"><apex:outputField value="{!Case[fset]}" />
</span></td>
</tr>
</apex:repeat>
</apex:outputPanel>
...
What I have tried:
< apex:outputField value="{!Case[fset]}" Style="color:red"/>
- No change in any fields
< apex:outputField value="{!Case[fset]}" StyleClass="redcolor"/>
- No change in any fields
< span style="color: red;">< apex:outputField value="{!Case[fset]}" />< /span>
- All field values appear in red color except lookup fields
< font color="red">< apex:outputField value="{!Case[fset]}" />< /font>
- All field values appear in red color except lookup fields
- When I use outputText, I can change the color of all field values, but, of course it shows the id for lookup and boolean value for checkbox
Is there any other way or it cannot be changed. Thanks