Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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" could I reference it in VF as:

{!$Label.Opportunity} <!-- make this "opportunity" not "Opportunity" -->
share|improve this question
up vote 10 down vote accepted

You can use LOWER(text, [locale]) function to this .

{!LOWER($Label.Opportunity)}

In case you are interested in more functions like this ,refer this doc

share|improve this answer

See Visualforce Functions. You can use the LOWER function:

{!LOWER(someValue)}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.