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.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
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