Forms onclick事件google应用程序脚本

Forms onclick事件google应用程序脚本,forms,button,google-apps-script,Forms,Button,Google Apps Script,从未调用按钮的onclick事件: 下面是hello.html(html脚本) 如果从编辑器运行processForm,我会看到它将调用记录到我的电子表格中。但是,当我运行应用程序并看到Hello World下面有提交按钮时,单击按钮什么也不做。现在有一个bug。我们正在尽快解决这个问题。你可以跟我来:谢谢。。(把头发粘回去) <html> Hello World!! <form id="myForm"> <input type="button" on

从未调用按钮的onclick事件:

下面是hello.html(html脚本)


如果从编辑器运行processForm,我会看到它将调用记录到我的电子表格中。但是,当我运行应用程序并看到Hello World下面有提交按钮时,单击按钮什么也不做。

现在有一个bug。我们正在尽快解决这个问题。你可以跟我来:谢谢。。(把头发粘回去)
<html>
Hello World!!

  <form id="myForm">

   <input type="button" onclick='google.script.run.processForm(this.parentNode)'
 value='Submit!' name="submit">
  </form>
</html>
function doGet() {
  return HtmlService.createTemplateFromFile('hello').evaluate();
}

function processForm(myForm) {
  logtoerrorsheet("Hello Button");  
}


function logtoerrorsheet(mystring){
  //return;

  var ss = SpreadsheetApp.openById('spreadsheetID').getSheets()[0];
  var range = ss.getRange(ss.getLastRow()+1, 1, 1, 2);
  var values = [[new Date(), mystring]]; 
  range.setValues(values); 
}