You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
Hello,
Has anything changed in the last few days with apps script browser popup messages? None of the browser popup alert or confirm messages are working anymore.
something as simple as:
function testMsg(){
alert("This is a test")
or
function saveOrNot(){
var answer = confirm("PLEASE CONFIRM YES or NO")
if (answer){doSomething()
}
else{alert('USER CLICKED NO')
}
}
Is this deprecated now?
Dilshan Madushanka
unread,
Jul 30, 2021, 10:55:14 AM7/30/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Google Apps Script Community
As far as I know, the native alert was never worked on the apps script. You must use UI methods like
SpreadsheetApp.getUi().alert('This is a test');
or
const ui = SpreadsheetApp.getUi();
const response = ui.alert("Are you sure?", ui.ButtonSet.YES_NO);