I wrote the following code because I wanted to display the dialog on the spreadsheet in GAS.
I tried running this on a spreadsheet, but it works with Google Chrome, but it doesn't work with Firefox.
(Dialog does not appear, but script is successful)
Why?
showModalDialog
was the same with showModelDialog
.
function showdlgtest(){
varhtml=HtmlService.createHtmlOutputFromFile("newtest");
Logger.log(html)
varui=SpreadsheetApp.getUi();
Logger.log(ui)
ui.showModalDialog(html, "sample")
}
newtest.html
<!DOCTYPE html>
<html>
<head>
<base target="_top">
</head>
<body>
</body>
</html>
It's solved.
https://addons.mozilla.org/ja/firefox/addon/google-shortcuts-all-google-se/
It seems that the spreadsheet does not work properly when is inserted
© 2024 OneMinuteCode. All rights reserved.