how do i add if else condition for advanced pdf as...
# advancedpdf
d
how do i add if else condition for advanced pdf as i 2 have payment terms fields, one standard and one custom. the below condition isnt working. <#if record.terms ==''> then <td>${record.terms}</td> #else ${record.custbody_payment_terms} <td>${record.terms}</td>
d
thank you will check it out
s
<#if record.terms?has_content>
<td>${record.terms}</td>
<#else>
<td>${record.custbody_payment_terms}</td>
</#if>
?has_content will detect if record.terms is filled or not.
✔️ 1
d
Thank you Han!!!