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.
Creating a Alert if a Order is Closed
Hi,
I'm trying to create a Alert to pop up everytime a Order is Closed and Replaced.
right now, I wrote this using the Netsuite Help but its displaying a error.
function FieldChanged(type, name)
{
if (name == 'custpage_closeitems')
{
if (nlapiGetContext().getSetting('SCRIPT', 'custpage_closeitems') == 'T' {
field.setDefaultValue('T')
}
{
alert("Order is now closed, Don't forget to close PO. Please Inform Joanne and the Warehouse so item does not get despatched. Thank You");
return true;
}
The 'custpage_closeitems' is actually a custom button (dont know where this is store, but I just clicked on 'inspect element' on my firefox and it brought this up, so this is what the button is doing..
Tagged:
0