FreeMarker Template Language (FTL) is a powerful tool for creating dynamic web pages and emails, among other uses. However, like any programming or scripting language, it has certain reserved names that you need to be aware of. These names are keywords in FTL and cannot be used for top-level variables unless accessed using square-bracket syntax… Continue reading Reserved Names in FreeMarker Template Language (FTL)
Tag: Advance PDF Template Tags
Add Arithmetic Functions on Advanced PDF/HTML Template
The Advanced PDF/HTML Template employs a template engine called “FreeMarker”. There are 4 basic mathematical functions that can be used in the Advanced PDF/HMTL Template: Addition: + Subtraction: – Multiplication: * Division: /
Adding Trailing Zeroes to Decimal Fields in PDF Generation
To add trailing zeroes for values in the PDF, you can use the following code in your HTML template: ${record.custbody?string(“0.00”)} In this code, record.custbody represents the value of the decimal field on the record. The string method is then used to convert this value to a string format with two decimal places. If the original… Continue reading Adding Trailing Zeroes to Decimal Fields in PDF Generation
Setting Specific Date Format in Advanced HTML PDF Template
NetSuite provides a simple method to achieve this using the record.date?string(“MM/dd/YYYY”) syntax. When working with dates in NetSuite templates, it’s essential to note that the format string is case-sensitive. Therefore, it’s crucial to capitalize the format specifiers correctly. Using this syntax, you can customize the date format to suit your requirements. For instance, if you… Continue reading Setting Specific Date Format in Advanced HTML PDF Template
Advance PDF Template Tags
Advance PDF Template Tags