Activity Forums Salesforce® Discussions What is the use of Custom Label in Salesforce?

  • Piyush

    Member
    January 9, 2018 at 1:46 pm

    Hi Kapil,

    Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language. Custom labels are custom text values that can be accessed from Apex classes, Visualforce pages, or Lightning components. The values can be translated into any language Salesforce supports. We have also use custom label in our visulforce page to make that label dynamically .

    Thanks

  • Parul

    Member
    September 18, 2018 at 6:34 pm

    Hi.

    Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values can be translated into any language Salesforce supports. Custom labels enable developers to create multilingual applications by automatically presenting information (for example, help text or error messages) in a user’s native language.
    You can create up to 5,000 custom labels for your organization, and they can be up to 1,000 characters in length.

    To access custom labels, Go To Setup — Create — Custom Labels. Click on New Custom Labels.Enter value for name, value and description. We can use custom label name to access custom label value in apex code using System.Label.labelName.

     

    Thanks

  • shariq

    Member
    September 19, 2018 at 9:37 pm

    Hi,

    Custom label in apex code salesforce example. We can use System.Label.labelName to access custom label in apex code. Custom labels are custom text values that can be accessed from Apex classes or Visualforce pages. The values can be translated into any language Salesforce supports.

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos