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!
Multiple if statements in validateLine function
I am trying to create a script to validate line items based on the selection of a custom field on a sales order record. So I need to script to run through each selection item and check to see if the items noted in the script have been added to the order. If so, I wish to present a message. If item is not on order then I wish to move on to the next if statement. During testing I am finding that both alerts are being displayed. What am I missing? Here is my script:
function validateLine_rec() {
var stRecord = nlapiGetRecordType();