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
deepakMdeepakM 

How to hide a tr and Div in email template?

i have below code

<tr style="display:{!if(!cx.Include_in_Confirmation__c == true, 'none', 'block') } ">
</tr>
but its not work as none is not implemented as i changed to table-column its work but not in IE .

please help me the better solution why none is not applied thr?

thanks

deepakMdeepakM

but in salesforce perview it works that tr is hide but not in gmail

SFRajSFRaj

Hi,

 

Try this. It may work.

String styleBlock = 'display:none';

if(!cx.Include_in_Confirmation__c == true){

     styleBlock = 'display:block';

}

<tr style="styleBlock">
</tr>