Syntax for Advanced Template Fields
You can include the following field types for a record in an advanced template:
-
body fields
-
sublist fields
-
fields from related records
-
record search results fields
The template editor creates an XML document that uses syntax similar to HTML. Note that even though this syntax looks similar to SuiteScript, you can't run SuiteScript APIs in the template editor.
The fastest way to add a field to an advanced template is to select the field in the template editor’s Fields selector. (See Adding and Removing Fields in Advanced Templates.) If you prefer, you can use FreeMarker syntax to add a field manually instead of using the Fields selector.
Subrecords aren't supported in advanced templates, except for the list of inventory details values.
See the following:
Related Topics
- Source Code Editing in the Template Editor
- Source Code Editing to Customize Advanced Templates
- Setting a Template to Use a Font Unavailable in NetSuite
- Adding Files to Advanced PDF Templates
- Languages for Printed Forms that Use Advanced Templates
- Adding Translated Content in Advanced Printouts
- Adding Striping to Line Items in Advanced Templates
- Adding Page Breaks to Tables
- Printing Subsidiary Logo on Advanced Templates
- Adding Apply Sublist to Check Templates
- Using FreeMarker to Work with Hidden Fields Used in Advanced Templates
- Adding Bar Codes in Advanced Templates
- XML Formatting in Advanced PDF/HTML Templates