Activity Forums Salesforce® Discussions How to get the Label of a Formula field dynamically?

  • Gourav

    Member
    May 27, 2016 at 11:37 am

    HI Piyush,

    If your goal is to show the label via a visualforce page so you don't have static values per each API field, use the following example within the visualforce page to correctly display the label even if it changes on the administrative side:

    {!$ObjectType.Campaign.fields.Name.label}
    {!$ObjectType.Campaign.fields.CustomFieldAPIName__c.label}

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos