Hello, i need a hand with editing a PDF for an inv...
# advancedpdf
j
Hello, i need a hand with editing a PDF for an invoice. i would like a message to appear ONLY when the customer has a certain line item in the invoice. is this doable?
a
it is - you will just use a variable outside of the item loop and set it to true within the loop
if the message needs to appear above the items table then you just need to iterate through the items loop earlier on
j
wow thanks for the super fast reply. but if i am a super novice what would that line look like? id like it to display where the highlight is.
a
ah, you'll need to edit the source code of the PDF template to do it - if you're not comfortable doing that it will be pretty difficult to get it done
j
im ok doing it i would just need guidance. its ok ill do some more reading.
thanks for the aid in the right direction though!
a
np
s
If you are brand new to NetSuite's PDF templates, the templates use Freemarker. You can reference the documentation here: https://freemarker.apache.org/docs/ref_directive_if.html
👍 3
a
<#assign varname = varvalue />
is the key you'll need to add in outside of the loop
✔️ 2