The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
12 views

How to use Custom Labels inside of an expression on a custom button?

So I'll try to keep this short and simple. I have a client who wants to use Custom Labels in their buttons so the average user can duplicate and re-use them. One such label is simply the API name of ...
1
vote
1answer
30 views

Custom Label in Javascript

I have a piece of Javascript in a Visualforce page. I would like to change the Status of a Case when a button is clicked invoking my Javascript function. I can't figure out the proper syntax for ...
0
votes
0answers
19 views

Default value in long text area from custom labels

I have created a new long text area field and added to layout. Created a new custom label and have all the instructions for user in the label. When I add the default value for long text area field ...
1
vote
1answer
29 views

Profile Specific Logic in Visualforce Page

I have to disable buttons for three profiles. like A, B and C. I want to achieve something like.. for all values in custom labels. Can I put all profiles name ie. A, B, & C in custom label, it ...
1
vote
1answer
24 views

How to use List in reports

i got a requirement in which I want to filter a report of opportunities based on a list of users. My list of users shuffles frequently. I have created a custom label with users names. So we are ...
-1
votes
1answer
24 views

How to Customize Custom Label data in formula field [closed]

I got a requirement to customize custom label data and display in a formula field. Like i have custom label called Deal Users and data like. Robin,Rivera,Jose,opp,Dcosta,James Now i want to display ...
1
vote
2answers
20 views

How to create multiple custom labels?

I need to create many custom labels at once. These are all for the same VF page, and I'm grouping them in a category. However, creating many in the web interface is just too repetitive and slow. I've ...
0
votes
2answers
20 views

Using Custom Labels in a controller

have the below statements using some hard coded strings and I want to make them use as custom labels. So how can I make these statements to use the Custom Labels I created ? custom label:- value A,B,C ...
0
votes
1answer
37 views

How to compare custom label value in IF condition on VF page?

I have a requirement to compare a variable with a custom label to show or hide section on VF page. Eg: <apex:inputText value="{!myVariable1}" rendered="{!IF(myVariable2 == $Label....
1
vote
1answer
44 views

Can I extend apex:outputtext in a custom component?

<apex:outputText> accepts an arbitrary number of nested param tags, which is useful for inserting values in Custom Label translations. Unfortunately there's a bug: if there's an apostrophe ...
-1
votes
1answer
21 views

Using Custom Labels in comparable text [duplicate]

if(!ad.Street__c.contains('XXYYZZ')) { ForNewRecord.add(ad); } I have this piece of code in my class. Where XXYYZZ is a value which can be changed any time. I dont want to hard code in the ...
4
votes
1answer
72 views

How to programmatically double apostrophes in custom label translations?

I have a custom label which contains a couple of parameters: Hello, {0} the other param is {1}. I wish to output this value in a Visualforce Page like so: <apex:variable var="firstParam" value="...
0
votes
0answers
37 views

Custom label in field value of custom settings [duplicate]

I have some custom settings to send custom message in chat after few seconds. Because, the system is multilanguage and multicountry, I need to send messages in the customer's language. Is it possible ...
0
votes
1answer
40 views

How to add custom label in static resource JS alert

How to add custom label in static resource JS alert , i want to create a alert error message using a custom label in static resources
3
votes
1answer
328 views

How to make regex as reusable?

I have a regex which validates the user email address.I have used same regex in two controller classes. now my code is : if(!Pattern.matches ('([a-zA-Z0-9_\\-\\.]+)@((\\[a-z]{1,3}\\.[a-z]{1,3}\\.[a-z]...
8
votes
2answers
216 views

Make Custom Label lowercase

Is it possible to format at custom label referenced in Visualforce, specifically make the label all lowercase? For example if I have a custom label called "Opportunity" with a value of "Opportunity" ...
0
votes
1answer
27 views

String conversion when using labels

I am going to use a label in Apex code and compare it with another String variable. Example: Comparison Label.MyLabel == MY_VARIABLE; Do I need to first convert the label to String before comparing?...
0
votes
1answer
156 views

Update Date field with the value of custom label in Process builder

I want to update Date field with the value of custom label in Process builder. I am trying to do like DATE($Label.NYResident_ExpDate) custom label value is 2016-01-31 Please suggest what needs to ...
0
votes
0answers
34 views

Custom Picklists in Visualforce Compatible with Translation Workbench

I'm building out a community using Visualforce, and eventually the community will need to be translated into different languages. In some parts of the community I need to display picklists (that don't ...
1
vote
0answers
30 views

Actions and Links in Sentence-style Custom Labels?

When building a multi-language portal in Visualforce, developers can use custom labels and the Translation Workbench to create a fully functional site that is easy for administrators to translate. ...
3
votes
1answer
136 views

Are custom labels supported in Lightning Components?

For Visualforce we are using custom labels as described here: https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_variables_global_label.htm The usage is very simple: {!$Label....
0
votes
2answers
510 views

How to use custom labels in Email templates?

I want to use custom labels in the email template to display images stored in the documents. I want to store the base URl and Ids in a label so that I can fix them on moving them to other sandboxes....
0
votes
1answer
64 views

Change Field labels in VF page

I have below VF page that is look alike of standrad detail page. Now I need to change field labels in the vf page. Can someone suggest a wayout please? Code: <apex:page standardController="...
0
votes
1answer
259 views

How to translate custom tabs and labels through export/import of translation files a la translation workbench

I am interested if there are ways to export/import translation files for the custom and standard tabs and labels, just like how it's done in the translation workbench for custom fields, etc. I ...
1
vote
2answers
747 views

Custom Labels and tests

Can I access the value of a custom label during an Apex test? Do I have to use "SeeAllData=true" to get the value? If so, what value do I get back when not using "SeeAllData=true"? The documentation ...
1
vote
1answer
26 views

Is $Label equivalent to a global enumerated type?

Is $label just the global accessor for custom labels? Or can we also use $label to access built in labels? For exmaple, on the email task layout there is a FROM field. Can we use $label.From to access ...
1
vote
1answer
67 views

How Can I Parameterize Custom Labels in Lightning?

Good afternoon everyone, Now that custom labels are supported in Lightning. Has anyone had any success parameterizing them like the person did in this post? I'm trying to pass an attribute value as ...
6
votes
6answers
1k views

Using Custom Label in Custom Formula Fields

We have a formula field that displays images based upon the custom object's record type and a picklist value. This formula field is like IF( $RecordType.Name = "XYZ", IMAGE( CASE( Status__c , "...
3
votes
1answer
311 views

Can I use Custom labels in VisualFlows?

Whats the best practice in terms of visual Flows Processes in multiple languages? would appreciate any recommendations.. I find it a bit weird that I need to Clone the whole Flow.. I'm trying to ...
3
votes
2answers
341 views

Is there an easy way to show a multi-line Custom Label in a Visualforce page with the line breaks working correctly?

I'm looking to display a Custom Label on a Visualforce page, however when the Custom Label has line breaks in it, they're not coming through to the Visualforce page. If I inspect the html, the line ...
3
votes
0answers
827 views

How do I create apex tests with code that uses a custom label?

I have code that uses the value of a custom label. I'd like to create a test for it, and I'd like to test for different values of the label. However I see no way to change or create labels in a test (...
4
votes
2answers
886 views

Get Label value for specified language

I'm trying to implement a preview screen with a picklist of available languages and a textbox with translated text. The problem is System.Label.My_Preview_Text or $Label.My_Preview_Text are already ...
2
votes
1answer
77 views

How to Retrieve a Custom Label With Translations From a Trigger?

I have created a Custom Label named 'Case_subject', and have added translations for different languages. When I try to retrieve this Custom Label from a Trigger like Label.Case_subject, it only works ...
1
vote
2answers
129 views

how can i change a multi picklist value's label?

I would like to know how can I change a multi-picklist label? Meaning i have values: 1) Dept. 2) Sch. But i would like to display 'Department' for Dept. and 'School' for Sch in page layout. Its ...
3
votes
2answers
495 views

Javascript custom button throwing error - Undefined is not a function

I believe this is more due to my lack of knowledge about Javascript. But since i am working on salesforce, i thought i would post the question in this forum. There is a label SS_TLIfieldIDs, whose ...
0
votes
1answer
50 views

Country specific language support

Situation For a community we want to support up to 5 languages per country. Each language has to be different. E.g. For Germany we support German and English (Germany) For Switzerland: German (...
1
vote
0answers
60 views

Custom Label as Master Lable

I'm trying to find a way to make a button label dynamic and I couldn't find any other way than Custom Label. The only issue is I don't know how to make the MasterLabel to pick my custom label. I've ...
0
votes
0answers
155 views

question with custom label..how to insert “&nbsp;”?

I have a custom label as <value>&lt;&lt;&lt;</value> , How do i put "&nbsp;" between "&lt;", When i do like below: <value>&lt;&nbsp;&lt;&nbsp;&...
0
votes
1answer
494 views

Retrieve List of picklist values in a Set

I got the following variables(Custom Labels referring to picklist values), and a get method to retrieve List of picklist values of a field. I need to retrieve those List of picklist values in a Set. ...
3
votes
1answer
3k views

Using Custom Labels in a Class

I have the below If statements using some hard coded strings and I want to make them use as custom labels. I have created custom labels with the same String names as given below. So how can I make ...
0
votes
1answer
1k views

How to give custom labels for picklist values in visualforce page?

I have visual force page, in that i'l give custom labels for titles, command buttons, except Pick list values... Here my visual force page... How to give custom labels for pick list values in ...
0
votes
1answer
855 views

How to translate custom labels into other(sweedish, german,…) languages? [duplicate]

I have an issue with translation of custom labels... How to translate custom labels into other(sweedish, german,.......) languages.. Default language for my org is ENG. How to get the translation ...
1
vote
1answer
490 views

How to give custom labels for picklist values in salesforce?

i created custom labels from vf page, But i didn't create some custom labels for pick list values in my vf pages.. How to create custom labels for pick list values in salesforce?? any body help me ...
4
votes
1answer
567 views

Accessing Custom Labels through Batch Apex

We have a mobile application which needs custom labels for different languages through Salesforce custom labels. Because of API limit on metadata api, we are planning to store all the required custom ...
2
votes
0answers
89 views

Categories field on Custom Labels

Is the Categories field on Custom Labels merely for use in List View filters? Can I not download a file of Custom Labels and their translations, filtering on Categories? Even the Translation Workbench ...
3
votes
1answer
2k views

Language Translation for picklist values in VF Page

There are 2 picklist fields in my VF page. I successfully translated the whole VF page using custom labels (into Spanish), but the picklist values are not translated. How to translate them? Here's ...
4
votes
1answer
2k views

How to Escape Single Quotation Mark in String.format

I'm using the translation workbench to translate a custom label(mail's body) to English. In the message, there was a word "haven't". When I check the test email, the word showed up as "havent". I ...
2
votes
1answer
747 views

Can a validation rule error message resolve to a custom label?

Is there anyway to make the error message of a validation rule resolve to a custom label? The following url indicates that it's not possible, but I just wanted more verification: https://developer....
1
vote
1answer
143 views

Can I late translate labels in Salesforce Apex - Dynamic lookup of Label texts?

We need to store messages in the database. We could store the English text, but this could be less friendly if a French user wanted to review the messages. Is there a way I could look up a Custom ...
1
vote
2answers
633 views

pass parameter to custom label from javascript

I have a custom label that prints 'Enter at least 2 characters to search.' I would like to make the 2 a parameter that gets passed in so that the user can adjust it at their discretion. So the label ...