Google script web app goes blank page after submit

后端 未结 2 1446
南旧
南旧 2021-01-27 04:48

I have a google script web app with input fields. I would like all of those fields is input required if user want to submit data. Therefore, I used \"required\" attribute and ca

2条回答
  •  一个人的身影
    2021-01-27 05:16

    Issue:

    preventDefault is not called onSubmit. Hence the form is posted to the sandboxed user iframe inside the web-app.

    Solution:

    Call preventDefault.

    Snippet:

    e.preventDefault();//modified
    

    Note:

    Make sure #hora's val() is not a date object as date objects are illegal as parameters and cannot be passed from client to server.

提交回复
热议问题