Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
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: