Auto close modal dialog - After server code is done, close dialog in Google Spreadsheet
问题 I have a Google Sheet that runs some Apps Script server code to connect to an SQL server. I want to show the message "loading..." in the modal dialog while data is being refreshed. I can get the modal to pop up, but I want to auto-close the dialog as soon as the code is finished. An example I have set up is: function testpop () { var htmlOutput = HtmlService .createHtmlOutput('<p> This box will close when the data has finished loading.</p>') .setSandboxMode(HtmlService.SandboxMode.IFRAME)