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.

Rookie Asked on July 28, 2025 in How To's.
Add Comment
1 Answer(s)

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>

Rookie Answered on August 1, 2025.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor