Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Adding Field Values : Script
Hi All
I am just trying to add 3 currency field values and put it the result on 4th currecy field.
here is the code i have tried, but not working.
can someone please tell me, whats the wrong on this code ?.
function totalcost(name, type)
{
var total = nlapiGetFieldValue('custrecord_f1_estimated_cost') + nlapiGetFieldValue('custrecord_f2_estimated_cost') + nlapiGetFieldValue('custrecord_f3_estimated_cost');
nlapSetFieldValue('custrecord_total_estimated_cost', nlapFormatCurrency(total));
}
Thanks in advance
0