{"id":6999,"date":"2022-02-16T10:00:00","date_gmt":"2022-02-16T01:00:00","guid":{"rendered":"https:\/\/blog.synnex.co.jp\/?p=6999"},"modified":"2022-02-10T18:26:47","modified_gmt":"2022-02-10T09:26:47","slug":"gas-google-form-from-spreadsheet-2","status":"publish","type":"post","link":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/","title":{"rendered":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e)"},"content":{"rendered":"\n<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u6982\u8981\">\u6982\u8981<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#%E6%A6%82%E8%A6%81\"><\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet\/\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306e\u554f\u984c\u30c7\u30fc\u30bf\u304b\u3089\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff08\u9078\u629e\u554f\u984c\uff09\u306e\u30c6\u30b9\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u56de\u306f\u3001\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u8907\u6570\u9078\u629e\uff09\u306e\u554f\u984c\u3082\u4f5c\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3001\uff12\u7a2e\u985e\u306e\u554f\u984c\u5f62\u5f0f\u3092\u5229\u7528\u3067\u304d\u308bGoogle\u30d5\u30a9\u30fc\u30e0\u306e\u81ea\u52d5\u751f\u6210\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u524d\u56de\u306e\u8a18\u4e8b\u3067\u4f5c\u6210\u3057\u305f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3068GAS\u306b\u624b\u3092\u52a0\u3048\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u3078\u30c7\u30fc\u30bf\u5165\u529b\">\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u3078\u30c7\u30fc\u30bf\u5165\u529b<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#%E3%82%B9%E3%83%97%E3%83%AC%E3%83%83%E3%83%89%E3%82%B7%E3%83%BC%E3%83%88%E3%81%AE%E3%81%B8%E3%83%87%E3%83%BC%E3%82%BF%E5%85%A5%E5%8A%9B\"><\/a><\/h2>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30c7\u30fc\u30bf\u3092\u5165\u529b\u3057\u3001\u30b7\u30fc\u30c8\u540d\u306f\u305d\u306e\u307e\u307e\u300c\u30b7\u30fc\u30c81\u300d\u3068\u3057\u3066\u3044\u307e\u3059\u3002<br>\u524d\u56de\u306e\u30b7\u30fc\u30c8\u306b\u300c\u554f\uff13\u300d\u306e\u884c\u3092\u8ffd\u52a0\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"148\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_form-from-sheet2-1024x148.png\" alt=\"\" class=\"wp-image-7029\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_form-from-sheet2-1024x148.png 1024w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_form-from-sheet2-300x43.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_form-from-sheet2-768x111.png 768w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/001_form-from-sheet2.png 1403w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"table table-striped\"><thead><tr><th>A\u5217<\/th><th>B\u5217<\/th><th>C\u5217<\/th><th>D\u5217<\/th><th>E\u5217<\/th><th>F\u5217<\/th><th>G\u5217<\/th><th>H\u5217<\/th><th>I\u5217<\/th><th>J\u5217<\/th><\/tr><\/thead><tbody><tr><td>\u30d5\u30a9\u30fc\u30e0\u30bf\u30a4\u30c8\u30eb<\/td><td>\u7406\u89e3\u5ea6\u30c6\u30b9\u30c8<\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>\u30d5\u30a9\u30fc\u30e0\u306e\u8aac\u660e\u6587<\/td><td>\u7c21\u5358\u306a\u7406\u89e3\u5ea6\u30c1\u30a7\u30c3\u30af\u306e\u30c6\u30b9\u30c8\u3067\u3059<\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>\u4f5c\u6210\u3057\u305f\u30d5\u30a9\u30fc\u30e0\u306eURL<\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><td><\/td><\/tr><tr><td>\u554f\u984c\u306e\u30bf\u30a4\u30c8\u30eb<\/td><td>\u554f\u984c\u306e\u8aac\u660e<\/td><td>\u914d\u70b9<\/td><td>\u554f\u984c\u5f62\u5f0f<\/td><td>\u6b63\u89e3\u306e\u756a\u53f7<\/td><td>\u9078\u629e\u80a2\u2460<\/td><td>\u9078\u629e\u80a2\u2461<\/td><td>\u9078\u629e\u80a2\u2462<\/td><td>\u9078\u629e\u80a2\u2463<\/td><td>\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\uff08\u7b54\u3048\u306e\u89e3\u8aac\u306a\u3069\uff09<\/td><\/tr><tr><td>\u554f\uff11\uff0eGAS\u306f\u4f55\u306e\u7565\u79f0\u304b<\/td><td>GAS\u306f\u4ee5\u4e0b\u306e\u3046\u3061\u3069\u308c\u306e\u7565\u79f0\u304b\u7b54\u3048\u3088\u3002<\/td><td>60<\/td><td>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3<\/td><td>2<\/td><td>Google Apple System<\/td><td>Google Apps Script<\/td><td>Good Admin Script<\/td><td>Group Apply System<\/td><td>\u6b63\u89e3\u306fGoogle Apps Script\u3067\u3059\u3002<\/td><\/tr><tr><td>\u554f\uff12\uff0eGAS\u306e\u30d9\u30fc\u30b9\u8a00\u8a9e<\/td><td>GAS\u306e\u30d9\u30fc\u30b9\u306b\u306a\u3063\u3066\u3044\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306f\u4ee5\u4e0b\u306e\u3046\u3061\u3069\u308c\u304b\u3002<\/td><td>40<\/td><td>\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3<\/td><td>3<\/td><td>Python<\/td><td>Java<\/td><td>JavaScript<\/td><td>Go<\/td><td>\u6b63\u89e3\u306fJavaScript\u3067\u3059\u3002<\/td><\/tr><tr><td>\u554f\uff13\uff0eGoogle\u306e\u30b5\u30fc\u30d3\u30b9<\/td><td>Google\u306e\u63d0\u4f9b\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3092\u9078\u629e\u305b\u3088\u3002<\/td><td>50<\/td><td>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9<\/td><td>1,3<\/td><td>Spreadsheet<\/td><td>Excel<\/td><td>Document<\/td><td>Word<\/td><td>\u6b63\u89e3\u306fSpreadsheet\u3068Document\u3067\u3059\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"gas\u306e\u4f5c\u6210\">GAS\u306e\u4f5c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#gas%E3%81%AE%E4%BD%9C%E6%88%90\"><\/a><\/h2>\n\n\n\n<p>\u30b3\u30d4\u30da\u3067\u3059\u3050\u306b\u4f7f\u3044\u305f\u3044\u4eba\u5411\u3051\u306b\u3001\u4eca\u56de\u306e\u5b8c\u6210\u72b6\u614b\u306eGAS\u3092\u5148\u306b\u7d39\u4ecb\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br>\u3053\u306e\u95a2\u6570<code>createForm()<\/code>\u3092\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u4f5c\u6210\u3057\u305f\u30dc\u30bf\u30f3\u306b\u5272\u308a\u5f53\u3066\u308b\u306a\u3069\u3059\u308c\u3070\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function createForm() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  const formTitle = sheet.getRange(&#39;B1&#39;).getDisplayValue();\n  const formDescription = sheet.getRange(&#39;B2&#39;).getDisplayValue();\n\n  const firstRow = 5;\n  const lastRow = sheet.getLastRow();\n\n  const dataRows = lastRow - (firstRow - 1);\n\n  var questionList = sheet.getRange(firstRow, 1, dataRows, 10).getDisplayValues();\n\n  questionList = questionList.map(question =&gt; {\n    return {\n      title: question[0],\n      helpText: question[1],\n      point: question[2],\n      type: question[3],\n      answer: question[4],\n      choices: [question[5], question[6], question[7], question[8]],\n      feedback: question[9]\n    }\n  });\n\n  const form = FormApp.create(formTitle);\n\n  form.setDescription(formDescription)\n    .setIsQuiz(true);\n\n\n  questionList.forEach(question =&gt; {\n\n    if (question.type == &#39;\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3&#39;) {\n      var choiceItem = form.addMultipleChoiceItem();\n\n      var choiceList = [];\n\n      question.choices.forEach((choice, index) =&gt; {\n\n        if (choice != &#39;&#39;) {\n\n          let isCorrect = question.answer == String(index + 1);\n\n          let choiceObj = choiceItem.createChoice(choice, isCorrect);\n\n          choiceList.push(choiceObj);\n        }\n\n      });\n\n      const feedback = FormApp.createFeedback().setText(question.feedback).build()\n\n      choiceItem.setTitle(question.title)\n        .setHelpText(question.helpText)\n        .setPoints(question.point)\n        .setChoices(choiceList)\n        .setFeedbackForCorrect(feedback)\n        .setFeedbackForIncorrect(feedback);\n\n    }\n    else if (question.type == &#39;\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9&#39;) {\n      var checkboxItem = form.addCheckboxItem();\n\n      var choiceList = [];\n      var questions = question.answer.split(&#39;,&#39;);\n\n      question.choices.forEach((choice, index) =&gt; {\n\n        if (choice != &#39;&#39;) {\n\n          let isCorrect = questions.includes( String(index + 1) );\n\n          let choiceObj = checkboxItem.createChoice(choice, isCorrect);\n\n          choiceList.push(choiceObj);\n        }\n\n      });\n      const feedback = FormApp.createFeedback().setText(question.feedback).build()\n      \n      checkboxItem.setTitle(question.title)\n        .setHelpText(question.helpText)\n        .setPoints(question.point)\n        .setChoices(choiceList)\n        .setFeedbackForCorrect(feedback)\n        .setFeedbackForIncorrect(feedback);\n\n    }\n    else {\n      Browser.msgBox(&#39;\u300c&#39;+ question.title +&#39;\u300d\u306f\u4f5c\u6210\u3067\u304d\u306a\u3044\u554f\u984c\u5f62\u5f0f\u3067\u3059&#39;);\n    }\n\n\n  });\n\n  sheet.getRange(&#39;B3&#39;).setValue(form.getEditUrl());\n  Browser.msgBox(&#39;\u300c&#39; + formTitle + &#39;\u300d\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f&#39;);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u4ee5\u4e0b\u3067\u306f\u8a73\u3057\u304f\u7406\u89e3\u3057\u305f\u3044\u4eba\u5411\u3051\u306b\u3001\u524d\u56de\u306e\u8a18\u4e8b\u304b\u3089\u306e\u5909\u66f4\u70b9\u3092\u89e3\u8aac\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"1-\u6b63\u89e3\u306e\u756a\u53f7\u306e\u53d7\u3051\u53d6\u308a\u65b9\">1. \u6b63\u89e3\u306e\u756a\u53f7\u306e\u53d7\u3051\u53d6\u308a\u65b9<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#1-%E6%AD%A3%E8%A7%A3%E3%81%AE%E7%95%AA%E5%8F%B7%E3%81%AE%E5%8F%97%E3%81%91%E5%8F%96%E3%82%8A%E6%96%B9\"><\/a><\/h3>\n\n\n\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306e\u30c7\u30fc\u30bf\u3092\u53d7\u3051\u53d6\u3063\u305f\u5f8c\u3001map\u51e6\u7406\u3092\u7528\u3044\u3066\u30c7\u30fc\u30bf\u3092\u6574\u5f62\u3059\u308b\u90e8\u5206\u3067\u3059\u3002<br>\u57fa\u672c\u7684\u306b\u306f\u524d\u56de\u306e\u8a18\u4e8b\u3068\u540c\u3058\u3067\u3059\u304c\u3001\u6b63\u89e3\u306e\u756a\u53f7\u306e\u53d7\u3051\u53d6\u308a\u65b9\u3092\u5909\u66f4\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>  \/\/ map\u51e6\u7406\u3067\u554f\u984c\u306e\u30c7\u30fc\u30bf\u3092\u6574\u5f62\n  \/\/ \u6b63\u89e3\u306e\u756a\u53f7\u306f\u8907\u6570\u306e\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u53d7\u3051\u53d6\u308a\u307e\u3059\u3002\n  \/\/ \u203b\u524d\u56de\u8a18\u4e8b\u3067\u306f\u300c\u6570\u5024\u578b\u300d\u306b\u5909\u66f4\u3057\u3066\u3044\u307e\u3057\u305f\u3002\n  questionList = questionList.map(question =&gt; {\n    return {\n      title: question[0],\n      helpText: question[1],\n      point: question[2],\n      type: question[3],\n      answer: question[4],  \/\/ \u5909\u66f4\u524d\uff1a answer: Number(question[4]),\n      choices: [question[5], question[6], question[7], question[8]],\n      feedback: question[9]\n    }\n  });<\/code><\/pre><\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"2-\u554f\u984c\u5f62\u5f0f\u306b\u3088\u308b\u5206\u5c90\">2. \u554f\u984c\u5f62\u5f0f\u306b\u3088\u308b\u5206\u5c90<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#2-%E5%95%8F%E9%A1%8C%E5%BD%A2%E5%BC%8F%E3%81%AB%E3%82%88%E3%82%8B%E5%88%86%E5%B2%90\"><\/a><\/h3>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u306e\u4f5c\u6210\u5f8c\u3001\u554f\u984c\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u90e8\u5206\u3067\u3059\u3002<br>\u554f\u984c\u5f62\u5f0f\u306b\u3088\u3063\u3066\u5206\u5c90\u3057\u3001\u305d\u308c\u305e\u308c\u306b\u5408\u3063\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<br>\u203b\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u306e\u5834\u5408\u3001MultipleChoiceItem\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<br>\u203b\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\u5834\u5408\u3001CheckboxItem\u3068\u3044\u3046\u30aa\u30d6\u30b8\u30a7\u30af\u30c8<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>questionList.forEach(question =&gt; {\n  if (question.type == &#39;\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3&#39;) {\n      \n      \/\/ \u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff08\u9078\u629e\u554f\u984c\uff09\u306e\u8ffd\u52a0\u51e6\u7406\n      \/\/ \u4e00\u90e8\u5909\u66f4\u3042\u308a\u3001\u6b21\u9805\u3067\u89e3\u8aac\n\n  }\n  else if (question.type == &#39;\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9&#39;) {\n    \n    \/\/ \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u8907\u6570\u9078\u629e\uff09\u306e\u8ffd\u52a0\u51e6\u7406\n    \/\/ \u5f8c\u306e\u9805\u3067\u89e3\u8aac\n\n  }\n  else {\n\n    \/\/ \u554f\u984c\u306e\u5f62\u5f0f\u304c\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3067\u3082\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u3067\u3082\u306a\u304b\u3063\u305f\u5834\u5408\n    \/\/ \u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u3092\u8868\u793a\u3001\u554f\u984c\u306f\u4f5c\u6210\u3057\u307e\u305b\u3093\u3002\n    Browser.msgBox(&#39;\u300c&#39;+ question.title +&#39;\u300d\u306f\u4f5c\u6210\u3067\u304d\u306a\u3044\u554f\u984c\u5f62\u5f0f\u3067\u3059&#39;);\n  }\n});<\/code><\/pre><\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3-\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u9078\u629e\u554f\u984c\u306e\u8ffd\u52a0\u51e6\u7406\">3. \u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff08\u9078\u629e\u554f\u984c\uff09\u306e\u8ffd\u52a0\u51e6\u7406<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#3-%E3%83%A9%E3%82%B8%E3%82%AA%E3%83%9C%E3%82%BF%E3%83%B3%E9%81%B8%E6%8A%9E%E5%95%8F%E9%A1%8C%E3%81%AE%E8%BF%BD%E5%8A%A0%E5%87%A6%E7%90%86\"><\/a><\/h3>\n\n\n\n<p>\u98051\u3067\u30c7\u30fc\u30bf\u6574\u5f62\u6642\u306b\u30c7\u30fc\u30bf\u578b\u3092\u305d\u306e\u307e\u307e\u306b\u3057\u305f\u70ba\u3001<code>question.answer<\/code>\u306b\u306f\u300c\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf\u300d\u304c\u683c\u7d0d\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br>\u6b63\u89e3\u306e\u756a\u53f7\u3068\u554f\u984c\u756a\u53f7\u3068\u306e\u6bd4\u8f03\u3092\u884c\u3046\u969b\u306b\u30c7\u30fc\u30bf\u578b\u304c\u9055\u3046\u3068\u3001\u30a8\u30e9\u30fc\u3068\u306a\u3063\u3066\u3057\u307e\u3046\u306e\u3067\u30c7\u30fc\u30bf\u578b\u3092\u63c3\u3048\u308b\u51e6\u7406\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u6df7\u540c\u3092\u9632\u3050\u305f\u3081\u5909\u6570\u540d\u3092\u5909\u3048\u3066\u3044\u307e\u3059\u3002\nvar choiceItem = form.addMultipleChoiceItem();  \/\/ \u5909\u66f4\u524d\uff1a var item = form.addMultipleChoiceItem();\n\nvar choiceList = [];\n\nquestion.choices.forEach((choice, index) =&gt; {\n\n  if (choice != &#39;&#39;) {\n\n    \/\/ \u3053\u306e\u9078\u629e\u80a2\u304c\u6b63\u89e3\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\n    \/\/ question.answer\u304c\u300c\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf\u300d\u306a\u306e\u3067\u3001\u578b\u3092\u63c3\u3048\u3066\u6bd4\u8f03\u3059\u308b\n    let isCorrect = question.answer == String(index + 1);  \/\/ \u5909\u66f4\u524d\uff1a let isCorrect = question.answer == (index + 1)\n\n    let choiceObj = choiceItem.createChoice(choice, isCorrect);\n\n    choiceList.push(choiceObj);\n  }\n\n});\n\nconst feedback = FormApp.createFeedback().setText(question.feedback).build()\n\nchoiceItem.setTitle(question.title)\n  .setHelpText(question.helpText)\n  .setPoints(question.point)\n  .setChoices(choiceList)\n  .setFeedbackForCorrect(feedback)\n  .setFeedbackForIncorrect(feedback);<\/code><\/pre><\/div>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"4-\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u8907\u6570\u9078\u629e\u306e\u8ffd\u52a0\u51e6\u7406\">4. \u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u8907\u6570\u9078\u629e\uff09\u306e\u8ffd\u52a0\u51e6\u7406<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#4-%E3%83%81%E3%82%A7%E3%83%83%E3%82%AF%E3%83%9C%E3%83%83%E3%82%AF%E3%82%B9%E8%A4%87%E6%95%B0%E9%81%B8%E6%8A%9E%E3%81%AE%E8%BF%BD%E5%8A%A0%E5%87%A6%E7%90%86\"><\/a><\/h3>\n\n\n\n<p>\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\uff08\u8907\u6570\u9078\u629e\uff09\u306e\u554f\u984c\u3092\u8ffd\u52a0\u3059\u308b\u969b\u306f<code>.addCheckboxItem()<\/code>\u3092\u7528\u3044\u307e\u3059\u3002<br>\u554f\u984c\u306e\u8ffd\u52a0\u624b\u9806\u306f\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3068\u57fa\u672c\u540c\u3058\u3067\u3059\u304c\u3001\u6b63\u89e3\u306e\u756a\u53f7\u304c\u8907\u6570\u3042\u308b\u90e8\u5206\u306b\u3064\u3044\u3066\u30a2\u30ec\u30f3\u30b8\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>var checkboxItem = form.addCheckboxItem();\n\nvar choiceList = [];\n\n\/\/ \u6b63\u89e3\u306e\u756a\u53f7\u3092\u914d\u5217\u306b\u5909\u63db\n\/\/ split\u51e6\u7406\u3092\u7528\u3044\u3066\u300c\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf\u300d\u304b\u3089\u300c\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf\u306e\u914d\u5217\u300d\u306b\u5206\u5272\u3057\u307e\u3059\u3002\n\/\/ \u5206\u5272\u3059\u308b\u969b\u306e\u533a\u5207\u308a\u6587\u5b57\u306f\u300c,\uff08\u534a\u89d2\u30ab\u30f3\u30de\uff09\u300d\u3067\u3059\u3002\nvar questions = question.answer.split(&#39;,&#39;);\n\nquestion.choices.forEach((choice, index) =&gt; {\n\n  if (choice != &#39;&#39;) {\n\n    \/\/ \u3053\u306e\u9078\u629e\u80a2\u304c\u6b63\u89e3\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\n    \/\/ questions\u306b\u3053\u306e\u9078\u629e\u80a2\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304binclueds\u51e6\u7406\u3092\u7528\u3044\u3066\u78ba\u8a8d\u3057\u307e\u3059\u3002  \n    \/\/ index + 1\u306f\u300c\u6570\u5024\u578b\u30c7\u30fc\u30bf\u300d\u306a\u306e\u3067\u300c\u6587\u5b57\u5217\u578b\u30c7\u30fc\u30bf\u300d\u306b\u63c3\u3048\u3066\u304b\u3089\u78ba\u8a8d\u3057\u307e\u3059\u3002\n    let isCorrect = questions.includes( String(index + 1) );\n\n    let choiceObj = checkboxItem.createChoice(choice, isCorrect);\n\n    choiceList.push(choiceObj);\n  }\n\n});\nconst feedback = FormApp.createFeedback().setText(question.feedback).build()\n\ncheckboxItem.setTitle(question.title)\n  .setHelpText(question.helpText)\n  .setPoints(question.point)\n  .setChoices(choiceList)\n  .setFeedbackForCorrect(feedback)\n  .setFeedbackForIncorrect(feedback);<\/code><\/pre><\/div>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u5b8c\u6210\">\u5b8c\u6210<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#%E5%AE%8C%E6%88%90\"><\/a><\/h2>\n\n\n\n<p>\u3053\u308c\u3067\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\u3068\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9\u306e\uff12\u7a2e\u985e\u306e\u554f\u984c\u5f62\u5f0f\u3092\u5229\u7528\u3067\u304d\u308b\u30d5\u30a9\u30fc\u30e0\u306e\u81ea\u52d5\u751f\u6210\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304c\u5b8c\u6210\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism undefined-numbers lang-js\" data-lang=\"JavaScript\"><code>function createForm() {\n  const ss = SpreadsheetApp.getActiveSpreadsheet();\n  const sheet = ss.getSheetByName(&#39;\u30b7\u30fc\u30c81&#39;);\n\n  const formTitle = sheet.getRange(&#39;B1&#39;).getDisplayValue();\n  const formDescription = sheet.getRange(&#39;B2&#39;).getDisplayValue();\n\n  const firstRow = 5;\n  const lastRow = sheet.getLastRow();\n\n  const dataRows = lastRow - (firstRow - 1);\n\n  var questionList = sheet.getRange(firstRow, 1, dataRows, 10).getDisplayValues();\n\n  questionList = questionList.map(question =&gt; {\n    return {\n      title: question[0],\n      helpText: question[1],\n      point: question[2],\n      type: question[3],\n      answer: question[4],\n      choices: [question[5], question[6], question[7], question[8]],\n      feedback: question[9]\n    }\n  });\n\n  const form = FormApp.create(formTitle);\n\n  form.setDescription(formDescription)\n    .setIsQuiz(true);\n\n\n  questionList.forEach(question =&gt; {\n\n    if (question.type == &#39;\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3&#39;) {\n      var choiceItem = form.addMultipleChoiceItem();\n\n      var choiceList = [];\n\n      question.choices.forEach((choice, index) =&gt; {\n\n        if (choice != &#39;&#39;) {\n\n          let isCorrect = question.answer == String(index + 1);\n\n          let choiceObj = choiceItem.createChoice(choice, isCorrect);\n\n          choiceList.push(choiceObj);\n        }\n\n      });\n\n      const feedback = FormApp.createFeedback().setText(question.feedback).build()\n\n      choiceItem.setTitle(question.title)\n        .setHelpText(question.helpText)\n        .setPoints(question.point)\n        .setChoices(choiceList)\n        .setFeedbackForCorrect(feedback)\n        .setFeedbackForIncorrect(feedback);\n\n    }\n    else if (question.type == &#39;\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9&#39;) {\n      var checkboxItem = form.addCheckboxItem();\n\n      var choiceList = [];\n      var questions = question.answer.split(&#39;,&#39;);\n\n      question.choices.forEach((choice, index) =&gt; {\n\n        if (choice != &#39;&#39;) {\n\n          let isCorrect = questions.includes( String(index + 1) );\n\n          let choiceObj = checkboxItem.createChoice(choice, isCorrect);\n\n          choiceList.push(choiceObj);\n        }\n\n      });\n      const feedback = FormApp.createFeedback().setText(question.feedback).build()\n      \n      checkboxItem.setTitle(question.title)\n        .setHelpText(question.helpText)\n        .setPoints(question.point)\n        .setChoices(choiceList)\n        .setFeedbackForCorrect(feedback)\n        .setFeedbackForIncorrect(feedback);\n\n    }\n    else {\n      Browser.msgBox(&#39;\u300c&#39;+ question.title +&#39;\u300d\u306f\u4f5c\u6210\u3067\u304d\u306a\u3044\u554f\u984c\u5f62\u5f0f\u3067\u3059&#39;);\n    }\n\n\n  });\n\n  sheet.getRange(&#39;B3&#39;).setValue(form.getEditUrl());\n  Browser.msgBox(&#39;\u300c&#39; + formTitle + &#39;\u300d\u306e\u4f5c\u6210\u304c\u5b8c\u4e86\u3057\u307e\u3057\u305f&#39;);\n}<\/code><\/pre><\/div>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c\uff1a<br>\u5b9f\u884c\u7528\u30dc\u30bf\u30f3\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306b\u30e1\u30c3\u30bb\u30fc\u30b8\u30dc\u30c3\u30af\u30b9\u304c\u8868\u793a\u3055\u308c\u3001B3\u30bb\u30eb\u306b\u30d5\u30a9\u30fc\u30e0\u306e\u7de8\u96c6\u7528URL\u304c\u66f8\u304d\u8fbc\u307e\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"403\" height=\"214\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_form-from-sheet2.png\" alt=\"\" class=\"wp-image-7030\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_form-from-sheet2.png 403w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/002_form-from-sheet2-300x159.png 300w\" sizes=\"auto, (max-width: 403px) 100vw, 403px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"858\" height=\"122\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_form-from-sheet2.png\" alt=\"\" class=\"wp-image-7031\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_form-from-sheet2.png 858w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_form-from-sheet2-300x43.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/003_form-from-sheet2-768x109.png 768w\" sizes=\"auto, (max-width: 858px) 100vw, 858px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>\u30d5\u30a9\u30fc\u30e0\u306e\u7de8\u96c6\u7528URL\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u3001\u3053\u306e\u3088\u3046\u306b\u554f\u984c\u3068\u6b63\u89e3\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"935\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_form-from-sheet2.png\" alt=\"\" class=\"wp-image-7032\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_form-from-sheet2.png 715w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/004_form-from-sheet2-229x300.png 229w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"859\" height=\"633\" src=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_form-from-sheet2.png\" alt=\"\" class=\"wp-image-7033\" srcset=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_form-from-sheet2.png 859w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_form-from-sheet2-300x221.png 300w, https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/005_form-from-sheet2-768x566.png 768w\" sizes=\"auto, (max-width: 859px) 100vw, 859px\" \/><\/figure>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"\u307e\u3068\u3081\">\u307e\u3068\u3081<a href=\"https:\/\/fg-syn-blog.appspot.com\/development\/1_gas\/form-from-sheet2.html#%E3%81%BE%E3%81%A8%E3%82%81\"><\/a><\/h2>\n\n\n\n<p><a href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet\/\">\u524d\u56de\u306e\u8a18\u4e8b<\/a>\u306b\u5f15\u304d\u7d9a\u304d\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3067\uff12\u7a2e\u985e\u306e\u554f\u984c\u5f62\u5f0f\u304c\u6271\u3048\u308b\u30c6\u30b9\u30c8\u3092\u81ea\u52d5\u751f\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br>\u3057\u304b\u3057\u3001Google\u30d5\u30a9\u30fc\u30e0\u3067\u306f\u8a18\u8ff0\u5f0f\u306e\u554f\u984c\u3084\u753b\u50cf\u4ed8\u304d\u554f\u984c\u3082\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<br>\u305d\u308c\u3089\u306b\u3064\u3044\u3066\u5bfe\u5fdc\u3059\u308b\u65b9\u6cd5\u3082\u4eca\u5f8c\u3054\u7d39\u4ecb\u3059\u308b\u4e88\u5b9a\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u306f\u6559\u80b2\u30b5\u30fc\u30d3\u30b9\u306eGoogle Classroom\u306a\u3069\u306b\u3046\u3063\u3066\u3064\u3051\u306e\u3068\u3066\u3082\u4fbf\u5229\u306a\u6a5f\u80fd\u3067\u3059\u3002<br>Google Classroom\u3067\u6d3b\u7528\u3067\u304d\u308b\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u306e\u81ea\u52d5\u751f\u6210\u306b\u3064\u3044\u3066\u3082\u3044\u305a\u308c\u306f\u7d39\u4ecb\u3057\u3066\u3044\u3051\u305f\u3089\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"p-3 mb-4 bg-light rounded-3\">    <div class=\"container-fluid\">\n      <h4 class=\"display-6 fw-bold\"><span id=\"Google_workspace\">Google Cloud\u306e\u5c0e\u5165\u306f\u5f53\u793e\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044<\/span><\/h4>\n      <p class=\"col-md-12\">IT\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3067\u3042\u308bTD SYNNEX\u306fGoogle Cloud\u2122 Partner Award \u3092\u53d7\u8cde\u3059\u308b\u306a\u3069\u3001\u9577\u5e74\u306b\u308f\u305f\u308aGoogle\u2122\u306e\u30b0\u30ed\u30fc\u30d0\u30eb\u8a8d\u5b9a\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30bf\u30fc\u3068\u3057\u3066\u3001\u7dcf\u5408\u7684\u306a Google\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u3066\u3044\u307e\u3059\u3002\u304a\u5ba2\u69d8\u306b\u3068\u3063\u3066\u6700\u9069\u306a\u30bd\u30ea\u30e5\u30fc\u30b7\u30e7\u30f3\u306e\u63d0\u6848\u3084\u5c0e\u5165\u3001\u6d3b\u7528\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n      <a href=\"https:\/\/www.synnex.co.jp\/vender\/google\/inquiry\/\"><button class=\"btn btn-primary btn-lg\" type=\"button\">\u304a\u554f\u3044\u5408\u308f\u305b<\/button><\/a>\n    <\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002 \u6982\u8981 \u524d\u56de\u306e\u8a18\u4e8b\u3067\u306f\u3001\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u4e0a\u306e\u554f\u984c\u30c7\u30fc\u30bf\u304b\u3089\u3001\u30e9\u30b8\u30aa\u30dc\u30bf\u30f3\uff08\u9078\u629e\u554f\u984c\uff09\u306e\u30c6\u30b9\u30c8\u30d5\u30a9\u30fc\u30e0\u3092&#8230;<\/p>\n","protected":false},"author":1,"featured_media":7035,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","footnotes":""},"categories":[169],"tags":[],"class_list":["post-6999","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-google"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/\" \/>\n<meta property=\"og:site_name\" content=\"TD SYNNEX BLOG\" \/>\n<meta property=\"article:published_time\" content=\"2022-02-16T01:00:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1438\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"TD SYNNEX K.K.\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"TD SYNNEX K.K.\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"4\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/\",\"name\":\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG\",\"isPartOf\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg\",\"datePublished\":\"2022-02-16T01:00:00+00:00\",\"author\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053\"},\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg\",\"contentUrl\":\"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg\",\"width\":2560,\"height\":1438},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u30db\u30fc\u30e0\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google\",\"item\":\"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#website\",\"url\":\"https:\/\/jp.tdsynnex.com\/blog\/\",\"name\":\"TD SYNNEX BLOG\",\"description\":\"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053\",\"name\":\"TD SYNNEX K.K.\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g\",\"caption\":\"TD SYNNEX K.K.\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/","og_site_name":"TD SYNNEX BLOG","article_published_time":"2022-02-16T01:00:00+00:00","og_image":[{"width":2560,"height":1438,"url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg","type":"image\/jpeg"}],"author":"TD SYNNEX K.K.","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"TD SYNNEX K.K.","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"4\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/","url":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/","name":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e) &#8211; TD SYNNEX BLOG","isPartOf":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage"},"image":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage"},"thumbnailUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg","datePublished":"2022-02-16T01:00:00+00:00","author":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053"},"description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001GoogleAppsScript\uff08GAS\uff09\u3092\u7528\u3044\u3066\u3001Google\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u63a1\u70b9\u7b49\u304c\u3067\u304d\u308b\u8907\u6570\u9078\u629e\u554f\u984c\u306e\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002\u5b9f\u969b\u306e\u30b3\u30fc\u30c9\u3092\u8a18\u8f09\u3057\u306a\u304c\u3089\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#primaryimage","url":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg","contentUrl":"https:\/\/jp.tdsynnex.com\/blog\/wp-content\/uploads\/2022\/02\/AdobeStock_87170497-scaled.jpg","width":2560,"height":1438},{"@type":"BreadcrumbList","@id":"https:\/\/jp.tdsynnex.com\/blog\/google\/gas-google-form-from-spreadsheet-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u30db\u30fc\u30e0","item":"https:\/\/jp.tdsynnex.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Google","item":"https:\/\/jp.tdsynnex.com\/blog\/category\/google\/"},{"@type":"ListItem","position":3,"name":"\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u304b\u3089\u30c6\u30b9\u30c8\u7528Google\u30d5\u30a9\u30fc\u30e0\u3092\u4f5c\u6210\u3059\u308bGAS(\u8907\u6570\u9078\u629e)"}]},{"@type":"WebSite","@id":"https:\/\/jp.tdsynnex.com\/blog\/#website","url":"https:\/\/jp.tdsynnex.com\/blog\/","name":"TD SYNNEX BLOG","description":"IT\u5c02\u9580\u5546\u793e\u304c\u5c4a\u3051\u308b\u60c5\u5831\u30e1\u30c7\u30a3\u30a2","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jp.tdsynnex.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/001c8dcd84e98df520975ae4cfe82053","name":"TD SYNNEX K.K.","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/jp.tdsynnex.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a8f5827738602e2a74ad1b31e261ecc21785df535840a4363d1eb974fc63b3a6?s=96&d=mm&r=g","caption":"TD SYNNEX K.K."}}]}},"_links":{"self":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6999","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/comments?post=6999"}],"version-history":[{"count":5,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6999\/revisions"}],"predecessor-version":[{"id":7040,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/posts\/6999\/revisions\/7040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media\/7035"}],"wp:attachment":[{"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/media?parent=6999"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/categories?post=6999"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jp.tdsynnex.com\/blog\/wp-json\/wp\/v2\/tags?post=6999"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}