Hi! does CS have the ability to update a sublist o...
# suitescript
e
Hi! does CS have the ability to update a sublist on fieldChange
n
yes it does. I think youre looking for currentRecord.setCurrentSublistValue() though
Copy code
function fieldChanged(scriptContext) {
    let rec = scriptContext.currentRecord;
    let sublistId = scriptContext.sublistId;
    let line = scriptContext.line;
    let fieldId = "custcol_yourField";
    let value = "whatever your value is";

    rec.setSublistValue({ sublistId, line, fieldId, value });
  }
^ this is if you wanted to specify line.