title: Is it possible to invoke SpreadsheetApp.getUi() via onFormSubmit in google app script?
body: <p>With my spreadsheet bound script, this code works fine when invoked from <code>onOpen</code>. When invoked from <code>onFormSubmit</code> I get this error: <code>"Cannot call SpreadsheetApp.getUi() from this context."</code></p>
  
  <pre><code>        function showSidebar(issue,row) {
          var html = HtmlService
              .createTemplateFromFile('MySidebar');
          html.issue = issue;
          html.row = row;        
          SpreadsheetApp.getUi()
              .showSidebar(html.evaluate().setTitle('Alert'));
  }
  </code></pre>