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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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