You need to sign in to do that
Don't have an account?
Shweta Garg
Show Long Text Area content with Line break
Hi All,
I have created a visualforce email template.I need to show T_Last_External_Post__c (field in Case object) on email template with line break.
Here is my code.
but it not working .
any help is much appreciated.
I have created a visualforce email template.I need to show T_Last_External_Post__c (field in Case object) on email template with line break.
Here is my code.
<messaging:emailTemplate subject="test" recipientType="Contact" relatedToType="Case"> <messaging:htmlEmailBody > <html> <body> <apex:outputText value="{!SUBSTITUTE(SUBSTITUTE(JSENCODE(relatedTo.T_Last_External_Post__c), '\r\n', '\n'),'\n','<br/>')}" style="white-space:pre;" /> </body> </html> </messaging:htmlEmailBody> </messaging:emailTemplate>
but it not working .
any help is much appreciated.
Here is the reference to the apex:outputText attributes - https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_outputText.htm