Vishal Jaswal
Tera Sage

Hello @aaronanders 

Here is onCellEdit Client script:

function onCellEdit(sysIDs, table, oldValues, newValue, callback) {
    var saveAndClose = true;
    //Type appropriate comment here, and begin script below
	var viewName = g_list.getView();
    if (viewName == 'portal') { //System UI > Views
        alert('You are not authorized to update State Value "On Hold" in the Portal view.');
        saveAndClose = false;
    }
    callback(saveAndClose); // Returning false prevents the update
}

VishalJaswal_2-1777478051391.png

 




Validation:

VishalJaswal_1-1777478023893.png

 

 


Hope that helps!