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”










0 comments:

Post a Comment

 
| ,