I have the following OnEdit script in a Google spreadsheet that inserts a timestamp when a checkbox is edited. The action is preformed when I make the edit, but does not work when the edit is made by another user. Any help is appreciated.
function onEdit(e) {
addTimestamp(e);
}
function addTimestamp(e){
//variables
var startRow = 3;
var targetColumn = 6;
var ws = "MasterList";
//get modified row and column
var row = e.range.getRow();
var col = e. range.getColumn();
if(col === targetColumn && row >= startRow && e.source.getActiveSheet().getName() === ws){
e.source.getActiveSheet().getRange(row,19).setValue(new Date());
}
}