You need to sign in to do that
Don't have an account?
Nate Lindo 2
In an email template, only show section header of specififc fields are not blank
I have an email template that i am trying to customize a bit more. There is a section header called "NRT: Lozenges" with 2 fields under it , 4 mg lozenges and 2 mg lozenges. I want to have "NRT: Lozenges" to only appear if those 2 fields are not null. If those fields are null, i dont want that header to appear.
This is what i have:
<h2>{!IF(NOT(ISBLANK(AND(HCKits__c.X4_mg_lozenges__c,HCKits__c.X2_mg_lozenges__c))), "NRT: Lozenges", NULL)}</h2>
I am trying to have it say if HCKits__c.X4_mg_lozenges__c and HCKits__c.X2_mg_lozenges__c are not blank, populate "nrt: lozenges" and if they are blank, dont populate anything.
Nothing appears when i do this, even if i change "null" to X, X does not appear, even when i have a value for HCKits__c.X4_mg_lozenges__c or HCKits__c.X2_mg_lozenges__c
This is what i have:
<h2>{!IF(NOT(ISBLANK(AND(HCKits__c.X4_mg_lozenges__c,HCKits__c.X2_mg_lozenges__c))), "NRT: Lozenges", NULL)}</h2>
I am trying to have it say if HCKits__c.X4_mg_lozenges__c and HCKits__c.X2_mg_lozenges__c are not blank, populate "nrt: lozenges" and if they are blank, dont populate anything.
Nothing appears when i do this, even if i change "null" to X, X does not appear, even when i have a value for HCKits__c.X4_mg_lozenges__c or HCKits__c.X2_mg_lozenges__c
<h2>{!IF(HCKits__c.X4_mg_lozenges__c >=1 || HCKits__c.X2_mg_lozenges__c >=1, "NRT: Lozenges", NULL)}</h2>