I have this simple trigger script that should add a timestamp in the next column. simple, onEdit doesn\'t catch all edits. Can I do anything in the settings?
About your situation, there is a thread. In this thread, Rubén says that
This is a known limitation of onEdit.
About the direct solution of this issue, it is required to wait for Google's update.
Here, I would like to think of a workaround for your situation. The flow of this workaround is as follows.
This workaround supposes that there are the checkboxes in the range of "F1:F20".
By this, although it might be not perfect, it can be artificially achieved. Please think of this as just one of several workarounds.
function onEdit(e){
if (e.range.columnStart == 6 && e.range.columnEnd == 6 && e.range.rowStart <= 20) {
var ckeckboxRange = "F1:F20";
var date = new Date();
var range = e.source.getRange(ckeckboxRange);
var values = range.getValues().map(function(e) {return e[0] === true ? [date] : [""]});
range.offset(0, 1).setValues(values);
}
}
If this was not the result you want, I apologize.