Do Form POST in Google Apps Script with HtmlService?

前端 未结 1 745
不思量自难忘°
不思量自难忘° 2021-01-06 22:48

I\'m trying to do a wizard type application with Google Apps Script. Since styling with UiApp is so pain in the rear, I\'m trying with the HtmlService route. I can\'t get th

1条回答
  •  生来不讨喜
    2021-01-06 23:03

    Posting itself doesn't work in HtmlService due to security restrictions imposed by Google Caja.

    The correct way to do "form posts" in HtmlService is using google.script.run syntax to call server side functions with client side context. See here for a detailed example - https://developers.google.com/apps-script/guides/html-service-communication#forms

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