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 ‘With Line Break’

custom-label

Add the Value like:

Thanks & Regards, <br/>
TheBlogReaders.com Team <br/>
Testing by TheBlogReaders.com <br/>

and Save it.

How to Use the Custom Label in Visualforce Page:

<apex:outputText value=”{!$Label.With_Line_Break}” escape=”false” /> make sure escape=”false”

Results should be like below:

custom-label-result

Written by 

Salesforce MVP | 15x Salesforce Certified | Lightning Champion | Application Architect | 6x Trailhead Ranger | Sydney | Australia

Leave a Reply

Your email address will not be published. Required fields are marked *

*