Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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.