pen one
02/04/2021, 7:24 PM<#if transaction.recmachcustrecord326?has_content>
If I build the list before the #if statement it prints and change the #if statement to:
<#list transaction.recmachcustrecord_myfiles as files>
<#if files.custrecord326?has_content>
My Header Text
</#if></#list>
the header repeats for every line item in the sublist.
Any ideas on how I can achieve my goal?Marygolds3
02/04/2021, 8:38 PMJon Kears
02/05/2021, 9:37 PM<#if files.custrecord326?length gt 0>
Once you have that bit figured out (you should have My Header Text only the number of times the field is filled in), then you need to change your structure a bit if you only want My Header Text once (sorry if this is not what you intended)
<#assign printflag = 0>
<#list transaction.recmachcustrecord_myfiles as files>
<#if files.custrecord326?length gt 0>
<#assign printflag = 1>
</#if>
</#list>
<#if printflag == 1>My Header Text</#if>