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
Gap in SS 2.0 ability to disable line level fields.
In SS 1.0 there is a standalone function that disables fields and line level fields:
nlapiDisableField
nlapiDisableLineItemField
In SS 2.0 there is no standalone function and no function in either the record or currentRecord module to disable fields to my knowledge. Instead the attribute 'isDisabled' on a NetSuite field object. According to the documentation this should be used to disable fields like so.
currentRecord.getField({fieldId:'somefield'}).isDisabled = true;
currentRecord.getSublistField({sublistId: 'itemprobably', fieldId:'somefield', line:0 }).isDisabled = true;
Here is some documentation from SuiteAnswers 61331 of the "isDisabled" attribute for reference:
This property reflects the display type of a field. A value of true means the field is disabled. A value of false means the field is enabled. Note also: