Monday, December 22, 2014

How to add the new line in Salesforce Custom Label

How to add the new line in Salesforce Custom Label

Create a new Custom Label using below path:

Under Setup-> Build -> Create -> Custom Labels -> Click New and create a new custom Label called ‘Test With Line Breaks




Add the Value like:
Thanks & Regards, <br/>
sfdcsrini.blogspot.com Team <br/>
Testing by sfdcsrini.blogspot.com <br/>

and Save it.


How to Use the Custom Label in Visualforce Page:
<apex:outputText value=”{!$Label.Test_With_Line_Breaks}” escape=”false” /> make sure escape=”false”










4 comments:

vihal said...

not working bro

sarahb1558 said...

worked for me, thank you!

nick jones said...


thanks for sharing..
Server and Storage

Anonymous said...

not working in lightning web components,
any solution to add line break in lwc custom labels?

Post a Comment

 
| ,