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.
Update: Narrative Insights has been restored and is now available.
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.
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.
Adding a script to validate if a line item has a value
I am new to scripting for netsuite and have the following issue. I am trying to write a script that runs when the user submits a Bill, that should validate if our Class field has a value on each line, returning true if every line has a value, or false as soon as it hits a line that is blank. The script seems to run without error, but does not actually stop the Bill from being posted if I have the field blank. Any helpful tips or ideas would be greatly appreciated!
function saveRecord()
{
// Check to see that Class is populated. If not, block the save and warn with a popup.
0