pdf estimate template list field value conditions
Hello,
i have an estimate template. One of the fields under the item list is named country
The items table list looks like:
server country price qty amount
how can I add terms text based on counties under the list?
I want to know how I can export the group of countries listed, then add to the IF or CASE command
Thanks.
Here’s one way
<#– Collect flags if a country is present –>
<#assign hasUSA = false>
<#assign hasCanada = false>
<#assign hasMexico = false>
<#list record.item as item>
<#if item.custcol_country??>
<#assign country = item.custcol_country?string>
<#if country == “United States”><#assign hasUSA = true></#if>
<#if country == “Canada”><#assign hasCanada = true></#if>
<#if country == “Mexico”><#assign hasMexico = true></#if>
</#if>
</#list>



