You need to sign in to do that
Don't have an account?
Tony Mann 9
ISBLANK formula in VF Email Template
Hello,
I want to write code to populate the following ONLY when populated;
"Date of Birth: XX/XX/XXXX"
I am having trouble having the 'Date of Birth:' part render without and error.
My code currently has 'Date of Birth' in the template the entire time.
Code:
<apex:outputText value="{0, date, MM-dd-yyyy}">
Date of Birth:<apex:Param value="{!IF(NOT(ISBLANK(relatedTo.Date_of_Birth__c)),relatedTo.Date_of_Birth__c, '')}" />
</apex:OutputText>
Thanks
I want to write code to populate the following ONLY when populated;
"Date of Birth: XX/XX/XXXX"
I am having trouble having the 'Date of Birth:' part render without and error.
My code currently has 'Date of Birth' in the template the entire time.
Code:
<apex:outputText value="{0, date, MM-dd-yyyy}">
Date of Birth:<apex:Param value="{!IF(NOT(ISBLANK(relatedTo.Date_of_Birth__c)),relatedTo.Date_of_Birth__c, '')}" />
</apex:OutputText>
Thanks
Ayush Tripathi
Hi Try the below code