ANS-1683 · PRINTING, PDF & EMAIL TEMPLATES
How to Display a Customer Logo on NetSuite Advanced PDF/HTML Templates?
Effortlessly display customer logos on NetSuite Advanced PDF/HTML templates by sourcing image fields from customer records.
Short answer
To display a customer logo from the customer record on an Advanced PDF template, create a custom image field on the transaction to source the logo. Then, within the Advanced PDF/HTML template code, use an <img> tag with the custom field's value as its src attribute to render the image dynamically.
Scenario
A client requires the customer's logo to be printed on sales order documents. The logo is stored in a native NetSuite image field directly on the customer record. The challenge is to dynamically retrieve and display this image on an Advanced PDF/HTML template used for sales order printouts.
Solution
To implement dynamic customer logo display on Advanced PDF/HTML templates, follow these steps:
Create a custom transaction body field (e.g., on the Sales Order record) with the type 'Image'. This field will be used to source the customer logo from the customer record.
Configure this custom field to source its value from the customer record's image field where the logo is stored.
Within the Advanced PDF/HTML template code, reference this custom field using an
tag to render the image. The custom field's value will provide the image source. For example, if your custom field ID is custbody_gs_customer_logo:
<img src="${record.custbody_gs_customer_logo}"/>Expert NetSuite Support
Need help with this NetSuite issue?
Printing, PDF & Email Templates consulting and configuration support
