Hi, How to catch sublist fieldChanged event in Cli...
# suitescript
m
Hi, How to catch sublist fieldChanged event in Client script
Copy code
fieldChanged: function (context) {            
                var currentRecord = context.currentRecord;                
                if (context.fieldId == 'custcol_subcategory' & context.sublistId == expense') {
                }
}
1
s
fieldChanged also triggers for fields on sublists
m
can you please check above code what's wrong with that?
s
single
&
is bad
no
'
in front of
expense'
dont name variables the same name as NS modules,
var currentRecord = context.currentRecord
is bad practice
m
👍