{"id":1707,"date":"2020-11-02T13:00:35","date_gmt":"2020-11-02T04:00:35","guid":{"rendered":"https:\/\/google-apps-script.net\/instructions\/?p=1707"},"modified":"2021-06-16T22:11:50","modified_gmt":"2021-06-16T13:11:50","slug":"how-to-create-newdatavalidation-for-spreadsheets-by-gas","status":"publish","type":"post","link":"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newdatavalidation-for-spreadsheets-by-gas\/","title":{"rendered":"\u3010\u30b3\u30d4\u30da\u3067\u4f7f\u3048\u308b\u3011GAS\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3057\u3066\u307f\u308b"},"content":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u3084\u6570\u5024\u4ee5\u5916\u3092\u8aa4\u3063\u3066\u5165\u529b\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c0\u30d6\u30eb\u30c1\u30a7\u30c3\u30af\u3092\u3057\u305f\u308a\u4ed6\u306e\u4eba\u306b\u78ba\u8a8d\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u3067\u30df\u30b9\u3092\u6e1b\u3089\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u5831\u544a\u66f8\u306a\u3069\u6bce\u65e5\u4f5c\u6210\u3059\u308b\u3082\u306e\u3084\u5927\u898f\u6a21\u306a\u3082\u306e\u3092\u4f5c\u6210\u3059\u308b\u5834\u5408\u30de\u30f3\u30d1\u30ef\u30fc\u3067\u306f\u9650\u754c\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u3053\u3067\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u4f7f\u7528\u3067\u304d\u308b\u6a5f\u80fd\u3068\u3057\u3066\u30c7\u30fc\u30bf\u306e\u5165\u529b\u898f\u5247\u3068\u3044\u3046\u8a2d\u5b9a\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u5165\u529b\u898f\u5247\u3092\u884c\u3046\u3053\u3068\u3067\u6307\u5b9a\u3057\u3066\u3044\u306a\u3044\u5165\u529b\u5024\u3092\u5165\u529b\u3059\u308b\u3068\u8b66\u544a\u3084\u30a8\u30e9\u30fc\u8868\u793a\u304c\u51fa\u308b\u305f\u3081\u3001\u4f5c\u696d\u30df\u30b9\u304c\u5927\u5e45\u306b\u4f4e\u6e1b\u3055\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u305d\u306e\u5165\u529b\u898f\u5247\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u304b\u3089\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u308bnewDataValidation\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<!--more--><\/p>\n<h2>newDataValidation()\u30e1\u30bd\u30c3\u30c9\uff08\u5165\u529b\u898f\u5247\uff09<\/h2>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3067\u304d\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002\u3053\u306e\u30e1\u30bd\u30c3\u30c9\u306b\u7d9a\u3051\u3066\u6761\u4ef6\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u308a\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u4f5c\u6210\u30e1\u30bd\u30c3\u30c9\u306f<\/p>\n<p><strong><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newconditionalformatrule-for-spreadsheets-by-gas\/\">newConditionalFormatRule\u30e1\u30bd\u30c3\u30c9<\/a>\uff08\u6761\u4ef6\u4ed8\u304d\u66f8\u5f0f\uff09<\/strong><\/p>\n<p><strong><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newdatavalidation-for-spreadsheets-by-gas\/\">newDataValidation()\u30e1\u30bd\u30c3\u30c9<\/a>\uff08\u5165\u529b\u898f\u5247\uff09\u3053\u306e\u30d6\u30ed\u30b0<\/strong><\/p>\n<p id=\"newfiltercriteria\" class=\"showalways\" tabindex=\"0\" data-text=\" newFilterCriteria() \"><strong><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newfiltercriteria-for-spreadsheets-by-gas\/\">newFilterCriteria()\u30e1\u30bd\u30c3\u30c9<\/a>\uff08\u30d5\u30a3\u30eb\u30bf\u4f5c\u6210\uff09<\/strong><\/p>\n<p><strong><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newrichtextvalue-for-spreadsheets-by-gas\/\">newRichTextValue() \u30e1\u30bd\u30c3\u30c9<\/a>\uff08\u30ea\u30c3\u30c1\u30c6\u30ad\u30b9\u30c8\uff09<\/strong><\/p>\n<p><strong><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-create-newtextstyle-for-spreadsheets-by-gas\/\">newTextStyle()\u30e1\u30bd\u30c3\u30c9<\/a>\uff08\u30c6\u30ad\u30b9\u30c8\u30b9\u30bf\u30a4\u30eb\uff09<\/strong><\/p>\n<p>\u304c\u3042\u308a\u307e\u3059\u3002\uff08\u5404\u30ea\u30f3\u30af\u306b\u8a73\u3057\u3044\u8aac\u660e\u304c\u3042\u308b\u306e\u3067\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\uff09<\/p>\n<p><strong>\u30af\u30e9\u30b9\uff1aSpreadsheetApp<\/strong><\/p>\n<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3067\u306e\u8868\u793a\u30fb\u8a2d\u5b9a\u65b9\u6cd5\u306f\u30c7\u30fc\u30bf\u30bf\u30d6\u304b\u3089\u30c7\u30fc\u30bf\u306e\u5165\u529b\u898f\u5247\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u753b\u50cf\u306e\u3088\u3046\u306b\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u3054\u7d39\u4ecb\u3059\u308bnewDataValidation()\u30e1\u30bd\u30c3\u30c9\u306f\u3053\u306e\u753b\u9762\u306e\u8a2d\u5b9a\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u6bce\u56de\u624b\u52d5\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306a\u304f\u8d77\u52d5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><img class=\"alignnone size-full wp-image-1713\" src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=1236%2C723&#038;ssl=1\" alt=\"2020-09-07 20.40.25\" width=\"1236\" height=\"723\" srcset=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?w=1236&amp;ssl=1 1236w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=300%2C175&amp;ssl=1 300w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=768%2C449&amp;ssl=1 768w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=1024%2C599&amp;ssl=1 1024w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=304%2C178&amp;ssl=1 304w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-07-20.40.25.png?resize=282%2C165&amp;ssl=1 282w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/p>\n<p>\u6ce8\u610f\uff1a\u521d\u3081\u3066\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u969b\u306b\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306e\u8a31\u53ef\u3092\u6c42\u3081\u3089\u308c\u307e\u3059\u304c\u8a31\u53ef\u3092\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u306b\u3064\u3044\u3066\u306e\u8a73\u7d30\u306f\u4ee5\u4e0b\u306e\u8a18\u4e8b\u306b\u8a73\u3057\u304f\u8f09\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/for-dummies.net\/gas-noobs\/how-to-set-gas-scopes-for-free-google-account\/\">\u7121\u6599\u306eGmail\u30a2\u30ab\u30a6\u30f3\u30c8\u3067GAS\u306b\u521d\u56de\u306e\u5b9f\u884c\u8a31\u53ef\u3092\u4e0e\u3048\u308b\u65b9\u6cd5<\/a><\/p>\n<h3>\u69cb\u9020\uff08\u6a2a\u306b\u30b9\u30af\u30ed\u30fc\u30eb\u3067\u304d\u307e\u3059\uff09<\/h3>\n<div id=\"codebox\">\n<pre class=\"\" dir=\"ltr\" translate=\"no\">  <strong>SpreadsheetApp.newDataValidation().\u6761\u4ef6.\u7121\u52b9\u306a\u30c7\u30fc\u30bf\u306e\u5834\u5408.\u8b66\u544a\u30c6\u30ad\u30b9\u30c8\u306e\u8a2d\u5b9a.build()\n\n<\/strong><\/pre>\n<\/div>\n<p>\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>newDataValidation()\u306e\u5f8c\u306b<\/p>\n<p>\u6761\u4ef6<\/p>\n<p>\u6761\u4ef6\u306b\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u6642\u306e\u51e6\u7406<\/p>\n<p>\u5f53\u3066\u306f\u307e\u3089\u306a\u3044\u5834\u5408\u306b\u30c6\u30ad\u30b9\u30c8\u3092\u4f5c\u6210\u3059\u308b\u304b<\/p>\n<p>\u306a\u3069\u306e\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u6700\u5f8c\u306bbuild()\u3067\u30d3\u30eb\u30c0\u30fc\u3092\u69cb\u7bc9\u3055\u305b\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff11\u3067\u306f<a href=\"https:\/\/developers.google.com\/apps-script\/reference\/spreadsheet\/spreadsheet-app#newConditionalFormatRule()\" target=\"_blank\" rel=\"noopener\">Google\u30ea\u30d5\u30a1\u30ec\u30f3\u30b9<\/a>\u306e\u4f8b\u3092\u5143\u306b\u8aac\u660e\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u304c\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff11<\/h3>\n<div id=\"codebox\">\n<pre class=\"\" dir=\"ltr\" translate=\"no\">function newDataValidation1(){\n  var cell = SpreadsheetApp.getActive().getRange('E1');\/\/E1\u306e\u7bc4\u56f2\u3092\u53d6\u5f97\n  var rule = SpreadsheetApp.newDataValidation()\n    .requireNumberBetween(1, 100)\n    .setAllowInvalid(false)\n    .setHelpText('\u6570\u5024\u306f1\u304b\u3089100\u307e\u3067\u306e\u9593\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002')\n    .build();\n  cell.setDataValidation(rule);\/\/\u4f5c\u6210\u3057\u305f\u5165\u529b\u898f\u5247\u3092\uff12\u884c\u76ee\u3067\u53d6\u5f97\u3057\u305f\u7bc4\u56f2\u306b\u8a2d\u5b9a\n}<\/pre>\n<\/div>\n<p class=\"devsite-page-title\">\u5165\u529b\u898f\u5247\u30e1\u30bd\u30c3\u30c9\u304c\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u7b87\u6240\u306f3\u884c\u76ee\u304b\u30897\u884c\u76ee\u307e\u3067\u306e\u4ee5\u4e0b\u306e\u90e8\u5206\u3067\u3059\u3002<\/p>\n<div id=\"codebox\">\n<pre class=\"\" dir=\"ltr\" translate=\"no\">  var rule = SpreadsheetApp.newDataValidation()\n    .requireNumberBetween(1, 100)\/\/\u6761\u4ef6\n    .setAllowInvalid(false)\/\/\u7121\u52b9\u306a\u30c7\u30fc\u30bf\u306e\u5834\u5408\n    .setHelpText('\u6570\u5024\u306f1\u304b\u3089100\u307e\u3067\u306e\u9593\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002')\/\/\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u306e\u8a2d\u5b9a\n    .build();\/\/\u30d3\u30eb\u30c0\u30fc\u306e\u69cb\u7bc9<\/pre>\n<\/div>\n<p>\u4eca\u56de\u4f7f\u7528\u3055\u308c\u3066\u3044\u308b\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u89e3\u8aac\u3092\u3059\u308b\u3068<\/p>\n<p>.requireNumberBetween(1, 100)\uff1a\u6761\u4ef6\uff1a\u6570\u5b57\u304c\u6b21\u306e\u9593\uff08\uff11\u301c\uff11\uff10\uff10\uff09<br \/>\n.setAllowInvalid(false)\uff1a\u4e0a\u306e\u6761\u4ef6\u3067\u306f\u7121\u3044\u5834\u5408\uff1atrue \u306a\u3089\u8b66\u544a\u306e\u307f\u3067\u30c7\u30fc\u30bf\u306f\u305d\u306e\u307e\u307e\u3001false\u306a\u3089\u8b66\u544a\u304c\u30dd\u30c3\u30d7\u30a2\u30c3\u30d7\u3055\u308c\u30c7\u30fc\u30bf\u3092\u62d2\u5426\u3057\u307e\u3059\u3002<br \/>\n.setHelpText(&#8216;\u6570\u5024\u306f1\u304b\u3089100\u307e\u3067\u306e\u9593\u3067\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002&#8217;)\uff1a\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u8868\u793a<br \/>\n.build()\uff1a\u30d3\u30eb\u30c0\u30fc\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306b\u5fc5\u8981<\/p>\n<p>\u4eca\u56de\u306fE1\u306b\u6570\u5b57\uff11\u301c\uff11\uff10\uff10\u4ee5\u5916\u304c\u5165\u529b\u3055\u308c\u305f\u5834\u5408\u3001\u8b66\u544a\u3092\u51fa\u3059\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u8d77\u52d5\u3057\u305f\u5f8c\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eA1\u30bb\u30eb\u306b\u8a66\u3057\u306b1000\u3068\u5165\u529b\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30a8\u30e9\u30fc\u304c\u51fa\u3066\u5165\u529b\u304c\u62d2\u5426\u3055\u308c\u307e\u3059\u3002<\/p>\n<p><img class=\"alignnone size-full wp-image-1691\" src=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=1349%2C638&#038;ssl=1\" alt=\"2020-09-04 10.11.25\" width=\"1349\" height=\"638\" srcset=\"https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?w=1349&amp;ssl=1 1349w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=300%2C142&amp;ssl=1 300w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=768%2C363&amp;ssl=1 768w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=1024%2C484&amp;ssl=1 1024w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=304%2C144&amp;ssl=1 304w, https:\/\/i0.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.25.png?resize=282%2C133&amp;ssl=1 282w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/p>\n<p>E\uff11\u30bb\u30eb\u3092\u9078\u629e\u3057\u3066\u304b\u3089\u30c7\u30fc\u30bf\u30bf\u30d6\u306e\u30c7\u30fc\u30bf\u306e\u5165\u529b\u898f\u5236\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u5165\u529b\u898f\u5236\u304c\u5165\u3063\u3066\u3044\u308b\u306e\u304c\u308f\u304b\u308a\u307e\u3059\u306d\u3002<\/p>\n<p><img class=\"alignnone size-full wp-image-1692\" src=\"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=1561%2C929&#038;ssl=1\" alt=\"2020-09-04 10.11.14\" width=\"1561\" height=\"929\" srcset=\"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?w=1561&amp;ssl=1 1561w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=300%2C179&amp;ssl=1 300w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=768%2C457&amp;ssl=1 768w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=1024%2C609&amp;ssl=1 1024w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=304%2C181&amp;ssl=1 304w, https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-04-10.11.14.png?resize=282%2C168&amp;ssl=1 282w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/p>\n<div id=\"codebox\">\n<h3>\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c82<\/h3>\n<div id=\"codebox\">\n<pre class=\"\" dir=\"ltr\" translate=\"no\">function newDataValidation2() {\n  var cell = SpreadsheetApp.getActive().getRange('A1');\/\/A1\u306e\u7bc4\u56f2\u3092\u53d6\u5f97\n  var rule = SpreadsheetApp.newDataValidation()\n      .requireTextContains('\u30c6\u30b9\u30c8')\/\/\u5165\u529b\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u304b\n      .setAllowInvalid(true)\/\/\u4eca\u56de\u306ftrue\u306b\n      .build();\n  cell.setDataValidation(rule);\n}<\/pre>\n<\/div>\n<\/div>\n<p>\u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\uff11\u3068\u306e\u5909\u66f4\u7b87\u6240\u306f<\/p>\n<p>\uff14\u884c\u76ee\u306erequireTextContains<\/p>\n<p>5\u884c\u76ee\u304cfalse\u304b\u3089true\u3002.setHelpText\u3092\u524a\u9664<\/p>\n<p>requireTextContains\u306f(&#8216;****&#8217;)\u304c\u30bb\u30eb\u306b\u542b\u307e\u308c\u3066\u3044\u308b\u304b\u3092\u6761\u4ef6\u306b\u3059\u308b\u30e1\u30bd\u30c3\u30c9\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u3067\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306eA1\u306b\u30b5\u30f3\u30d7\u30eb\u3068\u5165\u529b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8b66\u544a\u30e1\u30c3\u30bb\u30fc\u30b8\u306f\u51fa\u3066\u304d\u307e\u3059\u304c\u30b9\u30af\u30ea\u30d7\u30c8\uff11\u306e\u3088\u3046\u306b\u5165\u529b\u62d2\u5426\u306f\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u308c\u306f.setAllowInvalid\u306e\u8a2d\u5b9a\u3092true\u306b\u3057\u305f\u305f\u3081\u8b66\u544a\u306e\u307f\u3068\u306a\u308a\u307e\u3059\u3002<img class=\"alignnone size-full wp-image-1716\" src=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=1093%2C421&#038;ssl=1\" alt=\"2020-09-08 13.47.24\" width=\"1093\" height=\"421\" srcset=\"https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?w=1093&amp;ssl=1 1093w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=300%2C116&amp;ssl=1 300w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=768%2C296&amp;ssl=1 768w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=1024%2C394&amp;ssl=1 1024w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=304%2C117&amp;ssl=1 304w, https:\/\/i2.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/09\/2020-09-08-13.47.24.png?resize=282%2C109&amp;ssl=1 282w\" sizes=\"(max-width: 1000px) 100vw, 1000px\" data-recalc-dims=\"1\" \/><\/p>\n<div id=\"codebox\">\n<p>\u3061\u306a\u307f\u306b\u3053\u306e.setAllowInvalid(true)\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u8a2d\u5b9a\u306a\u306e\u3067\u8a18\u5165\u3057\u306a\u3044\u5834\u5408\u3067\u3082\u540c\u3058\u7d50\u679c\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u307e\u305f.setHelpText\u3082\u8a2d\u5b9a\u3057\u306a\u3044\u5834\u5408\u306f\u81ea\u52d5\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u306e\u3067\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30aa\u30ea\u30b8\u30ca\u30eb\u3067\u4f5c\u6210\u3059\u308b\u5fc5\u8981\u304c\u306a\u3044\u5834\u5408\u306f\u8a18\u5165\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>\u6761\u4ef6\u306a\u3069\u306e\u5165\u529b\u898f\u5247\u3067\u4f7f\u7528\u3059\u308b\u69d8\u3005\u306a\u30e1\u30bd\u30c3\u30c9\u306b\u3064\u3044\u3066\u306f<strong>\u5225\u8a18\u4e8b\uff08\u516c\u958b\u4e88\u5b9a\uff09<\/strong>\u3067\u8a73\u3057\u304f\u8aac\u660e\u3057\u3066\u3044\u307e\u3059\u306e\u3067\u305d\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<\/div>\n<div id=\"codebox\">\n<h2>\u307e\u3068\u3081<\/h2>\n<p>\u4eca\u56de\u306f\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5165\u529b\u898f\u5247\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f5c\u6210\u3059\u308b\u305f\u3081\u306e\u30e1\u30bd\u30c3\u30c9newDataValidation\u3092\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u81ea\u5206\u304c\u4f5c\u6210\u3059\u308b\u5831\u544a\u66f8\u3084\u4f5c\u696d\u66f8\u306a\u3069\u306f\u3082\u3061\u308d\u3093\u4ed6\u306e\u4f5c\u696d\u8005\u306b\u66f8\u3044\u3066\u3082\u3089\u3044\u305f\u3044\u8cc7\u6599\u306b\u6c7a\u3081\u3089\u308c\u305f\u6587\u5b57\u3084\u6570\u5b57\u3092\u5165\u308c\u3066\u6b32\u3057\u3044\u5834\u5408\u3053\u306e\u5165\u529b\u898f\u5247\u3092\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u4f5c\u696d\u8005\u306e\u30df\u30b9\u3060\u3051\u3067\u306a\u304f\u78ba\u8a8d\u306a\u3069\u306b\u3082\u5f79\u306b\u7acb\u3064\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u4eca\u307e\u3067\u3053\u306e\u4f5c\u696d\u3092\u624b\u52d5\u3067\u3084\u3063\u3066\u3044\u305f\u65b9\u306b\u3068\u3063\u3066\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u306b\u3088\u3063\u3066\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u8d77\u52d5\u3059\u308b\u3060\u3051\u3067\u6bce\u56de\u540c\u3058\u8a2d\u5b9a\u306e\u72b6\u614b\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u4f5c\u696d\u52b9\u7387\u5316\u306b\u3082\u306a\u308b\u30e1\u30bd\u30c3\u30c9\u3060\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3063\u305f\u30e1\u30bd\u30c3\u30c9\u3092\u305f\u304f\u3055\u3093\u4f7f\u3044\u3053\u306a\u3057\u3066\u4f5c\u696d\u304c\u3069\u3093\u3069\u3093\u697d\u306b\u306a\u3063\u3066\u3044\u304f\u3068\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u3053\u3053\u307e\u3067\u3054\u89a7\u3044\u305f\u3060\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u969b\u306b\u6307\u5b9a\u3055\u308c\u305f\u6587\u5b57\u3084\u6570\u5024\u4ee5\u5916\u3092\u8aa4\u3063\u3066\u5165\u529b\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u30c0\u30d6\u30eb\u30c1\u30a7\u30c3\u30af\u3092\u3057\u305f\u308a\u4ed6\u306e\u4eba\u306b\u78ba\u8a8d\u3057\u3066\u3082\u3089\u3046\u3053\u3068\u3067\u30df\u30b9\u3092\u6e1b\u3089\u3059\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u5831\u544a\u66f8\u306a\u3069\u6bce\u65e5\u4f5c\u6210\u3059\u308b\u3082\u306e\u3084\u5927\u898f\u6a21\u306a\u3082\u306e\u3092\u4f5c\u6210\u3059\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1628,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","spay_email":"","jetpack_publicize_message":"\u3010GAS\u3011\u30b9\u30d7\u30ec\u30c3\u30c9\u30b7\u30fc\u30c8\u306e\u5165\u529b\u898f\u5247\u3092\u4f5c\u6210\u3059\u308bnewDataValidation\u30e1\u30bd\u30c3\u30c9\u3092\u30de\u30b9\u30bf\u30fc\r\n\uff03newDataValidation #spreadsheet #\u5165\u529b\u898f\u5247","jetpack_is_tweetstorm":false},"categories":[16,15,3],"tags":[53,51,52,50,155,154,113,156],"jetpack_featured_media_url":"https:\/\/i1.wp.com\/for-dummies.net\/gas-noobs\/wp-content\/uploads\/2020\/08\/sheetsReference.png?fit=320%2C180&ssl=1","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9Z92k-rx","jetpack_likes_enabled":true,"amp_validity":null,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1707"}],"collection":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/comments?post=1707"}],"version-history":[{"count":10,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1707\/revisions"}],"predecessor-version":[{"id":2619,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/posts\/1707\/revisions\/2619"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media\/1628"}],"wp:attachment":[{"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/media?parent=1707"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/categories?post=1707"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/for-dummies.net\/gas-noobs\/wp-json\/wp\/v2\/tags?post=1707"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}