Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 未能从电子表格提交表单响应_Javascript_Json_Google Apps Script_Google Sheets Api_Google Forms - Fatal编程技术网

Javascript 未能从电子表格提交表单响应

Javascript 未能从电子表格提交表单响应,javascript,json,google-apps-script,google-sheets-api,google-forms,Javascript,Json,Google Apps Script,Google Sheets Api,Google Forms,我正在尝试使用谷歌电子表格中的数据提交大量回复。 我使用了以下代码: 函数FillForm(){ var wrkSht=SpreadsheetApp.getActiveSpreadsheet().getSheetByName(“Sheet1”); 对于(var i=2;i我们可以尝试使用createResponse()创建和提交表单响应 使用createResponse()创建对表单的新响应 要回答问题项,请从该项创建一个itemsresponse 然后通过调用FormResponse.with

我正在尝试使用谷歌电子表格中的数据提交大量回复。 我使用了以下代码:

函数FillForm(){
var wrkSht=SpreadsheetApp.getActiveSpreadsheet().getSheetByName(“Sheet1”);

对于(var i=2;i我们可以尝试使用
createResponse()
创建和提交表单响应

  • 使用
    createResponse()
    创建对表单的新响应
  • 要回答问题项,请从该项创建一个
    itemsresponse
  • 然后通过调用
    FormResponse.withItemResponse(response)
    将其附加到此表单响应
  • 要保存汇编的响应,请调用
    FormResponse.submit()

  • 我们可以尝试使用
    createResponse()
    创建和提交表单响应

  • 使用
    createResponse()
    创建对表单的新响应
  • 要回答问题项,请从该项创建一个
    itemsresponse
  • 然后通过调用
    FormResponse.withItemResponse(response)
    将其附加到此表单响应
  • 要保存汇编的响应,请调用
    FormResponse.submit()
  • Exception: Request failed for https://docs.google.com returned code 400. Truncated server response: 
    
    <!DOCTYPE html><html lang="en" class="m2"><head><link rel="shortcut icon" sizes="16x16"
    
     href="https://ssl.gstatic.com/docs/spreadsheets/forms/favic... (use muteHttpExceptions option to examine full response) (line 16, file "Code")