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”
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:
not working bro
worked for me, thank you!
thanks for sharing..
Server and Storage
not working in lightning web components,
any solution to add line break in lwc custom labels?
Post a Comment