Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
2012.1 breaks validateField using nlapiGetCurrentLineItemValue()
In suitescript, validateField scripts are supposed to allow us to validate a fields values before the field is changed.
For a normal body field, this works as expected.
> nlapiGetFieldValue('custbody_notes_add')
"123"
//changing field from 123 to 123456
media.nl:397 jm_validateField: type:null name:custbody_notes_add
> nlapiGetFieldValue('custbody_notes_add')
"123456"
media.nl:195 jm_fieldChanged: type:null name:custbody_notes_add
> nlapiGetFieldValue('custbody_notes_add')
"123456"
For a column field this does not work correctly.
> nlapiGetCurrentLineItemValue('item','custcol_qty_bo')
"0"
//changing field from 0 to 1
media.nl:397 jm_validateField: type:item name:custcol_qty_bo
> nlapiGetCurrentLineItemValue('item','custcol_qty_bo')