netsuite – Inline Editing with SuiteScript – [1.0] Submit a Single Field

/**
 * A SuiteScript 1.0 example of using nlapiSubmitField to update a single field on a related record
 */

// From a Sales Order, get the Customer ID
var customerId = nlapiGetFieldValue("entity");

// Set a comment on the Customer record
nlapiSubmitField("customer", customerId, "comments", "This is a comment added by inline editing with SuiteScript.");

if you want to reproduce, please indicate the source:
netsuite – Inline Editing with SuiteScript – [1.0] Submit a Single Field - CodeDay