Hoping someone can help me.
Am trying to put a conditional statement into a HTML template that will include the following image which is a clickable link to start one of two surveys.
If certain criteria is true, display image and have it associated with url 1, otherwise associate it with url 2.
Would anyone be able to share the format of the if statement I would need within the email template?
Thanks in advance,
Patrick.
1 réponse
Hi Patrick,
How about creating two Image formula Hyperlink fields first, then create a conditional statement on the template based on their corresponding merge fields? You can try an IF statement on the email template similar to this format:
{!IF( Criteria1, Contact.Take_Survey__c,Contact.Take_Survey2__c}
Here are references for creating image formula fields:
https://help.salesforce.com/articleView?id=000007604&type=1
https://help.salesforce.com/articleView?id=useful_advanced_formulas_image_links.htm&type=5
Thanks!