+ Start a Discussion
BaguiarBaguiar 

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

HI there,

 

I have a formula field that reads:

 

CASE(Ownerid,005A0000000123,
"John Smith"& BR()
&"Senior Services Associate"& BR()
&"p:718.111.22222"& BR()
&"e: jsmith@tester.com ",005A0000000456,
"Mary Smith"& BR() 
&"Director of Services"& BR() 
&"p: 718.111.3333"& BR() 
&"e: mary@tester.com", "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.

like:

 

John Smith <BR> Senior Services Associate <br> p: 718.111.2222 <br> e: jophn@tester.com

 

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

 

Thanks!!

B

Rajesh_SFGRajesh_SFG

Hi Baguiar,

  

    You just use as given below code.

        <messaging:htmlEmailBody >

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

       </messaging:htmlEmailBody>

 

   This will be works fine.