Discussions
Join the NetSuite community to innovate, connect, and discover what’s next.
SuiteWorld brings thousands of innovators, builders, and leaders together to learn, connect, and shape what’s next. This October, explore how to build a stronger foundation for growth through inspiring keynotes, major product reveals, hands-on sessions, and unforgettable moments—all in one place for our biggest event of the year. Register now
How to validate fields on item fulfilment form
Hi ,
We have two custom fields in item fulfilment line level (Start date and End date), I want to validate both the dates should not be same.
I tried below , somehow it is not giving the alert when both are same.
function validateLine()
{
var GetRecord = nlapiGetRecordType();
if (GetRecord == 'itemfulfillment') {
var startdate = nlapiGetCurrentLineItemValue('item', 'custcol_contract_start')
var enddate = nlapiGetCurrentLineItemValue('item', 'custcol_contract_end')
if (startdate == enddate)
{
alert('Contract start and end should be different');
return false;
}
return true;
}
}
I thought of using workflow , But the above custom fields are not available for comparison(Actions used : Confirm, Show message. Both didn't work for me)