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
Jessica LandismanJessica Landisman 

How to display custom field and set its label on SourceForge page?

I have some custom fields. How do I display them in a page? Also, how do I set labels for them so that they appear in the same format as the fields being displayed from a Field Set?

 

Alternatively, is there a way to add custom fields to a Field Set?

Shashikant SharmaShashikant Sharma
<apex:repeat value="{!$ObjectType.Contact.FieldSets.Contact_Detail}" var="f">
                     <apex:outputField value="Owner Name" rendered="{!IF(CONTAINS(LOWER(f), 'ownerid') , true , false)}" />
                    <apex:outputField value="{!Contact[f]}" rendered="{!NOT(IF(CONTAINS(LOWER(field), 'ownerid') , true , false))}" />
                </apex:repeat>

 Try above i hope will work for you if not then please elaborate your question a bit more.