小编Mis*_*Sab的帖子

Google表格OnEdit() - 您无权调用showModalDialog

从本月初开始,这段代码就没有用了

function onEdit(e){    
              var html = HtmlService.createTemplateFromFile( 'MyHtmlFile' )
              .evaluate()
              .setWidth( 800 )
              .setHeight( 400 );
              SpreadsheetApp.getUi() // Or DocumentApp or FormApp.
              .showModalDialog( html, 'My page title' ); 
}
Run Code Online (Sandbox Code Playgroud)

当我编辑电子表格的单元格时,弹出窗口显示但是我在控制台中出现此错误:

Google Apps脚本:您无权调用showModalDialog

google-sheets google-apps-script google-apps-script-simple-triggers

3
推荐指数
1
解决办法
2139
查看次数