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.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Lookup item field from transaction form
HI,
I am trying to limit my fieldchanged code as I do some calculations on the line item if its a certain type of product. I have a checkbox within the item that specifies whether or not to excute the calcs.
At the begining of the field changed I have this code which (I was hoping) would lookup that value when a new line item is selected.
var record = nlapiGetNewRecord();
var Item = record.getFieldValue('custitem_product')
var Product = nlapiLookupField('item', Item, 'custitem_product');
if (Product == true)
{ ... rest of code...
Any help on this would be great.
Cheers,
Johann
0