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.
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!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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