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.
Alert on Item selection
This should be fairly straightforward, but I can't seem to figure it out.
I'm trying to display an alert when a user selects particular items on a quote.
In the code below, I'm just trying to display the value of the item. The alert only comes up when I change the custcol_item_number field, but it returns NULL.
function myValidateField(type, name, linenum) { if (type == 'item' && name == 'custcol_item_number'){ alert(nlapiGetLineItemValue('item','custcol_item_number', linenum)); } return true; } 0