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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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