I am trying to show an alert popup when cell selection is changed, using the new trigger onSelectionChange
.
For some reason it is not showing any alerts.
Am i doing something wrong or alerts does not work with this trigger?
function onSelectionChange(e) {
showAlert();
}
function showAlert() {
var ui = SpreadsheetApp.getUi();
var result = ui.alert(
'ALERT!',
'ALERT MESSAGE.',
ui.ButtonSet.OK);
}
I also tried that way:
function onSelectionChange(e) {
var ui = SpreadsheetApp.getUi();
var result = ui.alert(
'ALERT!',
'ALERT MESSAGE.',
ui.ButtonSet.OK);
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…