Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [customlabel]

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.

0
votes
0answers
12 views

How are you used to deploying custom labels with their translations?

Do you have some custom app to perform this action? Because using change sets it's quite crazy when you need to release e.g. 20 labels and your org already has thousands of others. I didn't find any ...
1
vote
0answers
16 views

Translations for multiple locales/dialects

We're developing a managed package that uses the translation workbench to provide translations. We'd like to support multiple English translations so that users with a different locale from En-US can ...
1
vote
1answer
22 views

Salesforce Label in lightning object

I am trying to create a javascript object inside of a helper method. What I am trying to accomplish is basically create a map so key=value. here is the code I have var tabVariables = { 0 : $A....
0
votes
0answers
31 views

How to disable the trigger in production with the custom label

I have one trigger onAccount which is not allowing me to insert update new Accounts to other objects so I would like to know how could I disable the trigger/class in the production without moving in ...
1
vote
1answer
23 views

Can I use $Label.LightningControl in my components?

While reading documentation for the lightning:input aura component, I noticed that some attributes default to $Label.LightningControl.activeCapitalized or $Label.LightningControl.inactiveCapitalized. ...
1
vote
1answer
47 views

IntelliJ - Can't resolve symbol after adding a label

I added a label and came from : doc.addError('vous ne pouvez pas ajouter de PJ');* to : doc.addError(System.Label.Document_messageErrSuppressionPJ); It's fine on dev console, but IntelliJ isn't ...
0
votes
0answers
44 views

Unable to access custom label value in lightning web componnet

import labelname from '@salesforce/label/myNamespace.labelName'; Error: I was unable to deploy the above statement, Explicit use of namespace "myNamespace" in file "scheduleConfig.js" is ...
2
votes
1answer
39 views

custom label in 'messageWhenValueMissing' attribute

I have used custom label in messageWhenValueMissing attribute but it doesn't get displayed in UI. Is there a way to use custom label in messageWhenValueMissing. This is necessary since multiple ...
0
votes
1answer
32 views

Uploading Custom Label From IDE

I was trying to add Custom Label to my SFDC sandbox, I am adding: <labels> <fullName>Test</fullName> <language>en_US</language> <protected>false</...
1
vote
2answers
39 views

Custom Label, Custom Setting or Custom Metadata Type for a simple URL

In one of my orgs, I have a simple Visualforce page with just an iframe inside. I don't want the URL to be hard-coded. I didn't develop anything else in this org. To store this simple URL, which one ...
2
votes
1answer
91 views

How can i add line break in custom label in lightning component | Salesforce [duplicate]

want to write some text in different line as i google it then found some way, where they told to add make sure escape=”false” but this is not working for me {!$Label.c.forgot_password_content} ...
0
votes
1answer
58 views

How to use Custom Labels in design attribute on Lighning web component [closed]

I'm developping a LWC and i need to know how to use a custom label in design attributte on lighning web component.
1
vote
1answer
61 views

Use an URL as a custom label in a custom link

I am working on an assignment where a custom URL needs to be provided on the Contact to open a training portal website when clicked. The DEMO and PROD salesforce instances need to open different ...
1
vote
1answer
41 views

Should custom labels be used as constants?

From the documentation Custom Labels are primarily meant for multi-language translation use, but our company does not use them for this purpose, but uses them extensively for text used in pdfs/VF ...
0
votes
0answers
44 views

Custom Labels and $Label

I am not sure what is happening behind this $Label line: <aura:component controller="CommunityHoldingDetailController" > <aura:attribute name="holding" type="Holding__c" required="true" /...
1
vote
1answer
19 views

Blank labels in flow formula after packaging

I'm working on a managed package which include a Flow. I want some fields on this Flow to have their labels alterable so i used "Formula" inside the flow with custom labels. This works fine on my ...
2
votes
1answer
312 views

LWC: how to dynamically get translated value from Label

In Aura we used to do this: let labelName = 'mylabel'; $A.getReference("$Label.c."+ labelName); In LWC $A is not accessible anymore. Following the documentation I can only see a way to get access ...
2
votes
1answer
139 views

Access all label from one import in component(LWC) [duplicate]

I am trying to access label in a component(Lightning web component). import greeting from '@salesforce/label/c.xxxx; import greeting from '@salesforce/label/c.yyyy; ... I want to access all labels ...
0
votes
1answer
85 views

Unable to update namespace of custom labels in managed package

I have a lightning component as part of a managed package that uses few custom labels. The custom labels are saved with the default namespace like {!$Label.c.label_name}. I am trying to update this ...
3
votes
3answers
61 views

Is it possible to pull specific language from custom labels by changing the users language

Using anonymous apex in my dev sandbox I did the following: User myUser = new User(); myUser.Id = UserInfo.getUserId(); myUser.LanguageLocaleKey = 'sv'; myUser.LocaleSidKey = 'sv'; update myUser; ...
2
votes
1answer
68 views

Custom Labels - Working around their limits

My team is currently undergoing a discussion related to adding support for more languages using salesforce's custom labels. I've used custom labels before but am a little concerned about the limits. ...
0
votes
0answers
192 views

Unable to access packaged custom labels from outside the managed package

I am able access the custom labels created in my org, using Apex, but not the custom labels from a managed package installed in my org. The documentation does not have a specific example to access ...
0
votes
1answer
26 views

How to show a text label within a section column on page layouts?

I need to show a text label within a section column on page layout. I've created a separate section and new VF page. I need the text label to appear both on create and edit of the record.
0
votes
1answer
31 views

is it possible to store dynamic value in Custom Label like {!…}

I know custom label is used to store static text but would like to store tableau report link with dynamic Contact Id value or name. Issue is when I read it from VFP without controller then it does not ...
1
vote
0answers
169 views

Alternative to custom settings in salesforce

I have a problem statement where I need to store a list of some 40 Parent Objects Ids statically. Further, if any one of the Parent Object's child records goes higher then 45,000(which is calculated ...
15
votes
0answers
227 views

Custom Labels in Packages - Potential BUG in Winter 19 (Confirmed as Know Issue by Salesforce)

We have an unmanaged package using 167 custom labels to use the Translation Workbench in Salesforce and to be able to translate texts into different languages. Until now, all our custom labels have ...
6
votes
1answer
408 views

Winter 19 Custom Labels

Since Winter 19 is applied in our scratch org, we have the following message on ALL our custom labels directly referenced from custom lightning components. Example: {!$Label.c.Persons} $LABEL.C....
0
votes
1answer
27 views

Language Translation for Parameterised part in custom labels

I am using a custom label whose value is "Create Account : {0}" where {0} is replaced with account's record type. I have added translation for "Create Account" part and that is working fine. But the ...
2
votes
2answers
473 views

Is it possible to make text bold in a custom label?

Background We have a custom application which we need to support in multiple languages. Visualforce is our main UI framework. For internationalization we will use Custom Labels. One of the possible ...
2
votes
2answers
163 views

Are Custom Labels Cached?

There was a requirement to store some key value pairs that will be frequently accessed and the current setup is that is being stored in custom labels. I was wondering if there is any evidence of ...
0
votes
0answers
101 views

Custom label translation issue

I have a custom label Label.LoginForm_Error_Message having translation for different countries. This label has been used in Apex page to show custom error message country specific whenever there is a ...
1
vote
1answer
490 views

Custom Label does not work on Lightning Components

I'm using custom label on lightning components, but it always shows me English, and does not follow the user language. Someone knows what to do in this case? I've tried reference my custom label ...
3
votes
2answers
80 views

Replacing hard coded messages inside Lightning JS controller

I have existing code which contains upto 20 hard coded messages(info, error etc.) inside my lightning JS controller. I am confused whether to use custom labels or custom settings as part of code ...
1
vote
1answer
7 views

Casing in label names in Visualforce Page

I have two orgs with a page that uses custom labels and one works as you would expect it: {!$Label.MyLabel} And I think the old behavior is that on an org with a namespace it is changed to: {!$Label....
0
votes
1answer
86 views

Custom Label inconsistencies in Managed Packaged

We have two Orgs, DEV and SIT (SIT installed by managed package ), and both have namespaces. In SIT the dynamic reference to the custom labels do not work, but in the Dev org they work. Below is the ...
2
votes
0answers
255 views

Lightning Experience: Using custom labels inside HTML Editor

I have a Salesfoce Community and I wonder if is it possible using custom labels inside an HTML Editor component (Community Builder). I've tried it but the customlabel is not being compiled. Thanks!
1
vote
0answers
199 views

Dynamically fetch Custom Labels in Apex class

I need to dynamically fetch Custom Labels in Apex class, something like Get All Labels where name like 'a%' I see SOQL does not support querying Custom Labels and although I see Metadata API can be ...
2
votes
2answers
336 views

Custom Labels - naming conventions - best practices?

We're about to start refactoring a bunch of hard-coded text from a client's Lightning Components and Visualforce pages into Custom Labels so that they can support multi-language users. Unfortunately ...
1
vote
1answer
109 views

I18n URL in Lightning

Using CustomLabels, we are able to use the {!format($Label.myNamespace.myLabelName, v.myAttribute} in lightning component markup where $Label.myNamespace.myLabelName looks like: <?xml version="1.0"...
0
votes
0answers
157 views

Formatting parameterized custom label inside subject for Visualforce Email template

I'm trying to use the format() visualforce function to have a parameterized custom label as my Visualforce Email Template subject. This is my current code: <messaging:emailTemplate ...
4
votes
1answer
211 views

Are custom labels referenced only in Lightning Components automatically packaged?

This (not marked as delivered) idea Custom Label Auto Packaging in Lightning Components has a "Latest Comment from Salesforce" of: Farhan Tahir - 5 months ago This is coming in Spring'18!! ...
0
votes
1answer
352 views

Custom Labels and Error Messages

The Adding and Customizing Input Field Labels documentation says: When set, the label attribute will be used for component-level error messages, for example, when a field is required or must be ...
0
votes
2answers
662 views

Leading and trailing blank space in custom label are truncated

I have error messages that are in the form System.Label.MyLabel1 + 'some other dynamic string' + System.Label.MyLabel2. Issue is I must have a space each between these 3 components. When I put a ...
0
votes
1answer
503 views

Apex Page Language attribute - Dynamic Assignment - Strange Beahviour

Following scenario: A custom label has to be displayed in a rendered PDF (display in a VF Iframe). Now - it should display the specific custom label translation language found in a controller function ...
2
votes
1answer
132 views

Managed Package Patch: Is new label creation allowed

It's mentioned that addition of new artifacts is not allowed in the scope of patch changes for managed package. The question here is - does label creation considered to be an addition of new artifact? ...
0
votes
1answer
173 views

How to show error message under apex:inputtextarea

On my page visualforce page I have a few fields that on submit validation will run. For some reason the error is not displaying under the textarea but its working for other fields on my page. How can ...
0
votes
2answers
2k views

How to use custom label inside Soql query for Date Value

I am using Custom label inside soql query for Date values. But I am getting error. String startvalue=System.Label.Start_CloseDate; String endvalue=System.Label.End_CloseDate; List<...
3
votes
2answers
838 views

Salesforce Lightning - Custom Labels with Parameters

When creating custom labels, you can do the following in a Lightning component (Assuming salutation = "Hello, {0}"): {!format($Label.mySection.salutation, v.name)} What I would like to know, is how ...
2
votes
2answers
192 views

Packaging renaming of account object

We've renamed Account object using 'Rename Tabs and Labels' from Setup menu to Customer. Everything works fine. The problem appeared when we packed our application as managed package - after ...
4
votes
1answer
426 views

Namespace replaced while saving a lightning component

When I use a Custom Label in a Lightning Component of managed package (with custom namespace), Salesforce changes the file and saves the label with the default namespace. For example, I save $Label....