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.
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