You need to sign in to do that
Don't have an account?
ahon
Email Template: only merge picklist value if specific value
Is there a formula or way to specify: if picklist field has certain value on record, do not insert merge field on email template?
For example, picklist values are x, y, z. If picklist field value is x, do not merge on template.
For example, picklist values are x, y, z. If picklist field value is x, do not merge on template.
<apex:outputPanel rendered="{!Components.Component_Status__c != 'Open'}">
All Answers
To conditionally exclude a merge field in an email template in Salesforce based on the value of a picklist field on a record, you can use an IF formula in the email template.
- Edit the email template's HTML or plain text body depending on the type of template you're using.
- Locate the position in the template where you want to include the merge field based on the picklist field's value.
Please mark as Best Answer if above information was helpful.Thanks,
Im trying to get the following to work:
If picklist value on record is "Open", do not display on email template / do not merge.
<apex:outputPanel rendered="{!Components.Component_Status__c != 'Open'}">