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.
setting the value of a sblist field in a field change event
I am using a form client script. I am trying to the change the value of a field in a sublist. I can tell the script executes, but does not set the value
Is this correct?
if (context.fieldId == 'location' || context.fieldId == 'quantity') {
Object.keys(context.currentRecord).forEach(function(key) {
// alert('key:' + context.currentRecord[key]);
}); //**************for each function**************
context.currentRecord.setCurrentSublistValue({ sublistId : 'item',
fieldId : 'quantity',
value : 12 ,
ignoreFieldChange: false });
var sublist = 'Sublist: ' + context.fieldId;
log.debug('Field Changed: ', sublist);
// log.debug( 'Field Change', 'Sublist:' + context.sublistId + ':' + context.fieldId );
alert('Sublist:' + context.sublistId + ':' + context.fieldId);