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 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Script to check if item quantity is less than 5, alert
I have a working script to check
1. Item available quantity is <=5,
2. popup a message " Available quantity is running low, please reorder".
However, the behaviour is not consistent.
1. When first item added is = 0, it gives the default netsuite message saying that item is .. 0 in back order, 0 available - which is fine.
2. If first item added is >= 5 but not 0, it gives my message saying"Available quantity is running low..."
Then, if my script was triggered first, it will never display the Netsuite message when item is less than or equal 0 again and not let user enter anything else or save the record.
0