Closing an App Script sidebar containing a form
问题 I have a Google Apps Script running a html-form in the sidebar. The form-answers are used to generate documents. My problem is that I want to close the sidebar when the program has completed (after clicking Submit). <form id="myForm"> <input name="name" type="text"/> <input type="button" value="Submit" onclick="google.script.run.withFailureHandler(fail). withSuccessHandler(google.script.host.close()). doStuff(this.parentNode)"/> </form> The program runs as intended if I remove the