How can I check for a record type? I tried <#if...
# advancedpdf
j
How can I check for a record type? I tried <#if record.type == 'INVOICE'> and it does not work. Is record.type callable? Figured it out: <#list record.lines as line><#if line.description?contains("Invoice")>
d
if you haven't already got it, go grab Michoel Chaikin's chrome extension NetSuite Field Explorer. Using it, you can see the value you want to check for is
custinvc
so
<#if record.type == 'custinvc'>
j
Amazing, thank you.
👍 1
n
have you tried using record.recordType too? Looking at the image I suspect you could use that and "invoice"