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
SUMAN KUMARI 70SUMAN KUMARI 70 

Display a text conditionally in VF Email template

Hi All, 
I have a requirement where I need to display a text "abc " in a visualforce email template. The condition is that the text should only be visible in the email if the Account record has a related list record of Contact and that contact record has an attachment to it.

Thanks a lot in advance. 
Kindly help me out with this asap.
AnudeepAnudeep (Salesforce Developers) 
Hi Suman - You need to do it using a formula. See example here