function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vinothvinoth 

Work on particular field in field set?

Hi,

I am using Field set to display the transpose table. In the field set I am having 10 fields, among them I have to apply style to the particular field. Eg,.3rd field. How to do this,Guide me to resolve this issue.

Best Answer chosen by Admin (Salesforce Developers) 
SurekaSureka
Hi,

Try this,

<apex:repeat value="{!$ObjectType.Account.FieldSets.fieldset1}" var="f" >
<apex:outputField value="{!account[f]}" rendered="{!IF(f.Label!='Account Name','true','false')}" style="text-align:center;color:blue;"/>
<apex:outputField value="{!account[f]}" rendered="{!IF(f.Label!='Account Site','true','false')}" style="text-align:center;color:white;"/>
</apex:repeat>


Thanks