Activity › Forums › Salesforce® Discussions › What is the use of Custom Label in Salesforce?
-
What is the use of Custom Label in Salesforce?
Posted by kapil on January 9, 2018 at 1:14 PMCustom label can only return string value which is defined by user so, what is the significance of this?
shariq replied 7 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
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
- [adinserter block='9']
-
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
-
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.