Is there any way to get the sublist level changes ...
# suitescript
a
Is there any way to get the sublist level changes in client script? Does fieldChanged trigger capture those changes?
k
Yes, you can use Client script and Field Changed
what version are using 1.0 or 2.0 ?
if your using 2.0
function fieldChanged(context) { var currentRecord = context.currentRecord; var sublistName = context.sublistId; var sublistFieldName = context.fieldId; var line = context.line; if (sublistName === ‘item’ && sublistFieldName === ‘item’) currentRecord.setValue({ fieldId: ‘memo’, value: ‘Item: ’ + currentRecord.getCurrentSublistValue({ sublistId: ‘item’, fieldId: ‘item’ }) + ' is selected’ });
try that
a
Thank you Kevin! In the meantime, I learned a little more from SuiteAnswers also.
k
Sounds great!