Reserved Names in FreeMarker Template Language (FTL)

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)

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