Fetch value from custom field in advanced pdf template

To fetch value from a custom field created using script in advanced pdf template. <td align=”center” margin=”0px” padding-bottom=”3px” padding-top=”3px” style=”border-color: #a09fa3; border-bottom:thin; border-right:thin;” width=”8%”>     <#if record.custpage_jj_item_data?has_content>         <#assign itemData = record.custpage_jj_item_data?eval>         <#list itemData as itData>             <#if item.item == itData.itemName>  … Continue reading Fetch value from custom field in advanced pdf template

Custom field using script to store manufacturer country from item

Script to create a custom field and store the manufacturer country from item record. define([“N/search”, “N/ui/serverWidget”], (search, serverWidget) => {   /**    * Defines the function definition that is executed before record is loaded.    * @param {Object} scriptContext    * @param {Record} scriptContext.newRecord – New record    * @param {string} scriptContext.type – Trigger… Continue reading Custom field using script to store manufacturer country from item

Removing Unwanted Words by JavaScript

Scenario: The formatFundName function cleans up a string by removing specific words like “The” at the beginning and “Fund” at the end. This is useful for standardizing names while keeping the core meaning intact. It uses startsWith() and endsWith() to check if the string contains these words and then removes them using replace(). /** *… Continue reading Removing Unwanted Words by JavaScript