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.
Narrative Insights is Temporarily Unavailable due to an Infrastructure Issue. Learn how This Impacts Your Account and What to Expect While the Feature is Disabled.
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