You need to sign in to do that
Don't have an account?
@GM
Unable to display the picklist value in Visualforce Template
In the below code the value of {!relatedTo.PRM_EOL_Reason__c} this field(which is picklist) is not coming in the vf email template
Could you please help that how to display this in the email template?
<messaging:emailTemplate subject="Notification for EOL" recipientType="User" relatedToType="Lead">
<messaging:htmlEmailBody >
<html>
<body>
<p><b>Dear {!relatedTo.Assigned_ESR__r.Name} and {!relatedTo.Assigned_CAM__r.Name},</b><br/>
The following partner accepted lead has been EOL’d with reason code: {!relatedTo.PRM_EOL_Reason__c}
<br/>
Please contact the partner user if you need additional info as to why this lead was EOL’d (End of Lifed).</p>
<br/>
<p><b>Lead Information:</b><br/>
Lead Number: {!relatedTo.PRM_Lead_Number__c}<br/>
Lead Assigned Date: <apex:outputText value="{0,date,MMM dd','yyyy}">
<apex:param value="{!relatedTo.Partner_Assigned_Date__c}" /></apex:outputText><br/>
<p>Regards</p>
<p>Admin</p>
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Could you please help that how to display this in the email template?
<messaging:emailTemplate subject="Notification for EOL" recipientType="User" relatedToType="Lead">
<messaging:htmlEmailBody >
<html>
<body>
<p><b>Dear {!relatedTo.Assigned_ESR__r.Name} and {!relatedTo.Assigned_CAM__r.Name},</b><br/>
The following partner accepted lead has been EOL’d with reason code: {!relatedTo.PRM_EOL_Reason__c}
<br/>
Please contact the partner user if you need additional info as to why this lead was EOL’d (End of Lifed).</p>
<br/>
<p><b>Lead Information:</b><br/>
Lead Number: {!relatedTo.PRM_Lead_Number__c}<br/>
Lead Assigned Date: <apex:outputText value="{0,date,MMM dd','yyyy}">
<apex:param value="{!relatedTo.Partner_Assigned_Date__c}" /></apex:outputText><br/>
<p>Regards</p>
<p>Admin</p>
</body>
</html>
</messaging:htmlEmailBody>
</messaging:emailTemplate>
All Answers
Check if there is any dependancy for that picklist.
Shaijan