I need to not show part of any email if the field ...
# general
p
I need to not show part of any email if the field has no value (the field is a drop down). In my email template I am using the following:
Copy code
<#if transaction.custbody8?has_content>
Has Content
<#else>
No Content
</#if>
The issue I am having is that neither text is printing based on if it that field has a value or not. Any ideas what could be the issue?
s
try using brackets () <#if (transaction.custbody8)?has_content>
Or use length <#if transaction.custbody8?length gt 0>