function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Adding a paragraph BR() in formula is displaying "<br>" in email

HI there,


I have a formula field that reads:


"John Smith"& BR()
&"Senior Services Associate"& BR()
&"p:718.111.22222"& BR()
&"e: ",005A0000000456,
"Mary Smith"& BR() 
&"Director of Services"& BR() 
&"p: 718.111.3333"& BR() 
&"e:", "No owner")

 this works for the email signature, according to the owner of the Lead. The formula displays the values just fine with the paragraphs correctly within salesforce pages. Now, when I use the field in an email template, the result is a lot os <BR> where there was supposed to be just another paragraph.



John Smith <BR> Senior Services Associate <br> p: 718.111.2222 <br> e:


Again, looking at the field in Salesforce, it displays just fine with the page breaks.





Hi Baguiar,


    You just use as given below code.

        <messaging:htmlEmailBody >

           <apex:outputText value="{!yourFormulafield_here}" escape="false"/>



   This will be works fine.