“SpreadsheetApp.getUi() cannot be called from this context”

后端 未结 1 1447
灰色年华
灰色年华 2020-12-11 06:01

In a Google Sheets spreadsheet, I want to show a modal dialog created from HTML, then run a function, then close that HTML prompt automatically.

The dialog should st

相关标签:
1条回答
  • 2020-12-11 06:54

    Ui Dialogs can not be called by time triggered functions, they have to be triggered by a user action, that's to say a click on a menu item or some sort of button that calls the function showing the UI.

    0 讨论(0)
提交回复
热议问题