Discussions
SuiteWorld is the largest annual gathering of the NetSuite community! It will be held in Las Vegas on October 6-9, 2025. Our customers and partners look forward to SuiteWorld every year as a place to hear the latest from NetSuite, get hands-on learning, and connect with each other. Register now!
Freemarker Email Template-if logic
Hi There
I have a scriptable email template that I am using with sales order transactions.
I have the following freemarker code:
<#--FM:BEGIN--><#if transaction.item?has_content ><#--FM:END--> <#--FM:BEGIN--><#list transaction.item as itemlist ><#--FM:END--> <#--FM:BEGIN--><#if itemlist.quantitybackordered>0><#--FM:END--><br />
<br /><strong>List 1:</strong>
<#--FM:BEGIN-->${itemlist.item} </#if><#--FM:END--> <#--FM:BEGIN--></#list><#--FM:END--><br />
<#--FM:BEGIN--></#if><#--FM:END--><br />
<span style="font-size:11.0pt"><span style="font-family:"Calibri",sans-serif">.<br />
<br /><strong>List 2:</strong>
<#--FM:BEGIN--><#if transaction.item?has_content ><#--FM:END--> <#--FM:BEGIN--><#list transaction.item as itemlist ><#--FM:END--><#--FM:BEGIN--><#if itemlist.custcol_discontinued_item><#--FM:END--><br />