Discussions
NSC | Dynamically Set Currency Based on Bill Country in Advanced PDF/HTML Templates
Use Case:
Users may want the printed currency format in an Advanced PDF/HTML Template to change automatically depending on the transaction’s Bill Country.
This can be achieved by setting the locale dynamically within the template source code.
How It Works:
- Navigate to Customization > Forms > Advanced PDF/HTML Templates
2. Locate the preferred Advanced PDF/HTML Template and click Edit
3. Insert the following code after Line 4 of the template:
<#setting locale = "en_${record.billcountry}">
4. Click Save
This will dynamically apply the currency and locale formatting based on the Bill Country of the transaction record.
Alex Joves | Ask An Expert Live
Ask An Expert Live (AAEL) – An interactive program where Top Contributors share NetSuite expertise, answer your questions, and connect directly with the community. Designed to be informative and engaging, AAEL strengthens collaboration within the NetSuite Support Community. Click here to know more.
