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
rv90rv90 

using IF condition in Email Template Subject need output as custom field?

Below is my email templete where subject has IF conditon .... Where IF last email is_active__c = true  then i need start_date__c value printed and if is_active__c = false i  need 'No data Found' printed.

 
<messaging:emailTemplate subject="{!if(!RelatedTo.is_active__c,'{!relatedTo.start_date__c}','No data found')}"   recipientType="User" relatedToType="Apttus_Proposal__Proposal__c" replyTo="noreply@xyz.com" rendered="true">


When i execute this: is_active__c = true ---- I am getting Custom field  api name {!relatedTo.start_date__c} as text printed  instead of the custom field value ? 

Please help me to solve this...