HTML Service - Form example doesn't work

前端 未结 3 1832
情歌与酒
情歌与酒 2021-01-22 05:41

I\'d really like to use a form in my app, and the official Google example doesn\'t work.

Passing a form as a parameter to a function, prevents the function from being ca

3条回答
  •  走了就别回头了
    2021-01-22 06:26

    Ugh. Ok after almost posting a bug to Google, I found by searching their bug database that it's a known bug with file uploads - if your form doesn't have a file upload, the form will work.

    Additionally, if you really want a file upload in your form, there is a workaround.

    https://code.google.com/p/google-apps-script-issues/issues/detail?id=4610

    Why they don't just knock out the file part of the form example is beyond me. It's the only thing preventing it from working and isn't necessary to demonstrate the point. Could have saved me 3 hours while trying to learn their language, thinking it was my fault the whole time.

提交回复
热议问题