I may have asked this in the past. There is any wa...
# suitescript
a
I may have asked this in the past. There is any way to disable a dropdown field in a (item) sublist via a client script? I was able to disable other types of fields, but I am specifically asking about a dropdown field
n
nlapiDisableLineItemField()
a
Thanks! It has to be 1.0?
n
No, it can be 2.1 but I personally find it easier. 2.1 version needs to get the sublist, then the column/or the field, and then update the display type..
a
That doesn't seem to work for dropdowns
n
😮
Wow.. that's new. Thanks. I didn't know that
nlapiSetLineItemDisabled('item', 'location', true, 1) worked like a charm
But nlapiDisableLineItemField worked fine on the sales order item sublist
It doesn't work on Item Fulfillment, Item Receipt and Customer Payment
a
Oh. I just noticed. There are 2 different functions
nlapiDisableLineItemField
and
nlapiSetLineItemDisabled
The 2nd one works
Thanks!
n
The 2nd one works.. but 1st one also works.
Just tried on the SO.
a
Oh. You are right. I must have been doing something wrong