Can we display standard fields labels in vf page by using

<apex:column headervalue="{!$ObjectType.ABC__c.Fields.CreatedBy.Label}"> ?

The field API for CreatedBy is CreatedById so try this:-

<apex:column headervalue="{!$ObjectType.ABC__c.Fields.CreatedById.Label}">


That particular standard field does not work as answered in Referencing the localized label for the standard CreatedBy relationship (localized version of "Created By"). But, for example, the standard Name field does work.

So the answer is "sometimes".

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.