Skip to main content
Lukas Pfister ha preguntado en #Email

Hi,

 

We have linked a contact form on the website to Salesforce. When a request comes in via this contact form, a case is created. For this purpose, an email template was created, which is to be forwarded to the corresponding teams. Is there a possibility for an if condition, where certain fields which are not being filled in are hidden when forwarding?   The HTML code looks like this: 

 

Customer First name: {!Case.CP_Web_First_Name__c}

Customer Lastname: {!Case.SuppliedName}

Email: {!Case.SuppliedEmail}

Subject: {!Case.Subject}

Inquiry concerns: {!Case.cx_inquiry_concerns__c}

Inquiry Text: {!Case.Description}

  

Further information

Street: {!Case.CP_Supplied_Street__c}

PostalCode: {!Case.CP_Supplied_ZIP_Code__c}

City: {!Case.CP_Supplied_City__c}

Country: {!Case.CP_Supplied_Country__c}

Company: {!Case.SuppliedCompany}

Position: {!Case.CP_Supplied_Position__c}

Phone: {!Case.SuppliedPhone}

 

Inquiry originally sent to: {!Case.Origin}

 

#Email  #Send Email  #Email Template  #Template  #Lightning Email Template  #HTML Email  #HTML  #Classic Email Template

1 respuesta
  1. 6 jul 2021, 15:19

     Try something like below

     {!IF (NOT(ISBLANK(Case.SuppliedEmail), " Email: {!Case.SuppliedEmail} ","" )}

     

    Mark this as best if helps

0/9000