anyone know if its possible to hide or disable a s...
# suitescript
m
anyone know if its possible to hide or disable a sublist field with a pageInit Client Script?
b
my advice is to use nlapiGetLineItemField to get a nlobjField which you can manipulate how you wish. you can also use the more specific nlapiDisableLineItemField
SuiteScript 2 equivalent CurrentRecord.getSublistField(options) is less likely to work since it requires a line number
m
This has been a rather obnoxious stumbling block, in my experience - having to call
window.nlapiDisableLineItemField()
within SS2.x scripts feels extraordinarily hacky, and I can't believe that NetSuite hasn't acknowledged that this is a step backwards when transitioning from SS1.0 to SS2.x.
m
Thanks