Решилось просто
function onEdit(event)
{
SmartDataValidation(event);
var sheetName = event.source.getActiveSheet().getSheetName();
var sheet = event.source.getActiveSheet();
var idCol = event.range.getColumn();
var idRow = event.range.getRow();
if (idCol === 13 && sheetName === 'Заказы'){
sheet.getRange(idRow, idCol +8).setValue(new Date().toString());
}
}
|