AJAX post to google spreadsheet

后端 未结 3 953
余生分开走
余生分开走 2020-12-04 09:53

I am attempting to post form data to a google spreadsheet. Currently, if the form is validated, then the following occurs:

if (validateForm === true) {
              


        
3条回答
  •  既然无缘
    2020-12-04 10:49

    As Google Apps Script now has a ContentService that can return JSON responses it is possible to make ajax requests without using the hidden iframe. As the article author of the original solution I've published an updated version of this technique which includes an ajax example

    Users may also want to consider switching to this new version as it utilises other new Google Apps Script Services, in particular:

    • using LockService to prevent concurrent write access; and
    • switching to the new PropertiesService to store script data

提交回复
热议问题