Discussions
Check out Oracle NetSuite upcoming events and conferences here
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Update your Profile with your Support type to get your Support Type badge.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Get ready to take on exciting new challenges and become the next SuiteMaster of the Month!
AI capabilities embedded across the suite help boost productivity and give leaders an edge by helping them analyze data faster and generate unique insights that drive better decision-making. Watch these on-demand webinars to see how our AI capabilities can help you.
Streamline Invoice Processing with AI-Powered Automation
Use AI-Driven Insights for Faster, Better Planning and Forecasting
Streamline Invoice Processing with AI-Powered Automation
Use AI-Driven Insights for Faster, Better Planning and Forecasting
How to prevent Item Receipt saving if Bin Number is empty via SuiteScript?
Hello everyone,
I'm trying to create a SuiteScript client script that checks if the bin number field is empty on an item receipt transaction. If the bin number field is empty, I want to display an error message and prevent the user from saving the transaction. If the bin number field is not empty, the transaction should be allowed to save as normal.
I've created the script, but I'm having issues with it not allowing the transaction to save even when the bin number field is entered.
Here's my script:
/**
* @NApiVersion 2.x
* @NScriptType ClientScript
* @NModuleScope SameAccount
*/
define(['N/ui/dialog'],
0