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!
Script Works in Chrome but Not Firefox or Edge
Hi All
I'm new to scripting and have written a couple to compare the expected close date and line item dates on an opportunity record
One of the scripts are below which fires on line valiation.
The issue i'm having is it works great in Chrome and only alerts me if the expected close date is after the earliest line date. In Firefox and Edge it alerts me no matter what - grrr!
Any ideas whats wrong?
function ValidateLineDate()
{
var lineDate = Date.parse(nlapiGetCurrentLineItemValue('item','custcol1'));
var expectedClose = Date.parse(nlapiGetFieldValue('expectedclosedate'));
if(lineDate >= expectedClose)
{return true;}
else