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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Validate Field Event on a Transaction Column Filed???
Hi,
I tried this client side script from the user guide on a sales order as a validate field event on a custom transaction column field (type = text area). The script doesn't fire. Any suggestions?
Thanks,
Trevor
function validateField(type, name)
{
if (name == 'custcol_test')
{
var stringLength = String(nlapiGetCurrentLineItemValue('item','custcol_test','1')).length;
if (stringLength > 5)
{
alert("Your message may only have x number of characters");
return false;
}
}
return true;
}
0