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 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
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