kennkerp
11/19/2024, 1:04 AMCeligo AI
11/19/2024, 1:04 AMAI generated answer (using internal Slack threads):To exclude a specific item from the list of items on an Advanced PDF template, you would need to add a conditional statement in your FreeMarker code to check for the specific item and then exclude it. Here is a basic example of how you might do this:
freemarker
<#list record.item as item>
<#if item.itemId != "your_specific_item_id">
<!-- Your code to display the item goes here -->
</#if>
</#list>
In this example, replace "your_specific_item_id" with the ID of the item you want to exclude. This code will loop through all items in the record, and for each item, it will check if the item's ID is not equal to the specific item ID you want to exclude. If the item's ID is not the specific item ID, then it will execute the code inside the if statement to display the item.
Please note that you might need to adjust the field name 'itemId' depending on the actual field name in your record for the item ID.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
11/19/2024, 1:04 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.823244691
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.818632185
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.817293942
Celigo AI
11/19/2024, 1:04 AM