সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ডেটা যাচাইকরণের মানদণ্ড
ডেটা যাচাইকরণের মানদণ্ডের প্রতিনিধিত্বকারী একটি গণনা যা একটি পরিসরে সেট করা যেতে পারে।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, SpreadsheetApp.DataValidationCriteria.DATE_IS_VALID_DATE
// Change existing data-validation rules that require a date in 2013 to require// a date in 2014.constoldDates=[newDate('1/1/2013'),newDate('12/31/2013')];constnewDates=[newDate('1/1/2014'),newDate('12/31/2014')];constsheet=SpreadsheetApp.getActiveSheet();constrange=sheet.getRange(1,1,sheet.getMaxRows(),sheet.getMaxColumns());construles=range.getDataValidations();for(leti=0;i < rules.length;i++){for(letj=0;j < rules[i].length;j++){construle=rules[i][j];if(rule!=null){constcriteria=rule.getCriteriaType();constargs=rule.getCriteriaValues();if(criteria===SpreadsheetApp.DataValidationCriteria.DATE_BETWEEN&&
args[0].getTime()===oldDates[0].getTime()&&
args[1].getTime()===oldDates[1].getTime()){// Create a builder from the existing rule, then change the dates.rules[i][j]=rule.copy().withCriteria(criteria,newDates).build();}}}}range.setDataValidations(rules);
বৈশিষ্ট্য
সম্পত্তি
টাইপ
বর্ণনা
DATE_AFTER
Enum
প্রদত্ত মানের পরে একটি তারিখ প্রয়োজন৷
DATE_BEFORE
Enum
প্রদত্ত মানের আগে একটি তারিখ প্রয়োজন৷
DATE_BETWEEN
Enum
প্রদত্ত মানগুলির মধ্যে একটি তারিখ প্রয়োজন৷
DATE_EQUAL_TO
Enum
প্রদত্ত মানের সমান একটি তারিখ প্রয়োজন৷
DATE_IS_VALID_DATE
Enum
একটি তারিখ প্রয়োজন.
DATE_NOT_BETWEEN
Enum
প্রদত্ত মানগুলির মধ্যে নয় এমন একটি তারিখ প্রয়োজন৷
DATE_ON_OR_AFTER
Enum
প্রদত্ত মানের উপর বা তার পরে একটি তারিখ প্রয়োজন৷
DATE_ON_OR_BEFORE
Enum
প্রদত্ত মানের উপর বা তার আগে একটি তারিখ প্রয়োজন৷
NUMBER_BETWEEN
Enum
প্রদত্ত মানগুলির মধ্যে একটি সংখ্যা প্রয়োজন৷
NUMBER_EQUAL_TO
Enum
প্রদত্ত মানের সমান একটি সংখ্যা প্রয়োজন৷
NUMBER_GREATER_THAN
Enum
প্রদত্ত মানের থেকে বড় একটি সংখ্যা প্রয়োজন৷
NUMBER_GREATER_THAN_OR_EQUAL_TO
Enum
প্রদত্ত মানের থেকে বড় বা সমান একটি সংখ্যা প্রয়োজন৷
NUMBER_LESS_THAN
Enum
প্রদত্ত মানের থেকে কম এমন একটি সংখ্যা প্রয়োজন৷
NUMBER_LESS_THAN_OR_EQUAL_TO
Enum
প্রদত্ত মানের থেকে কম বা সমান একটি সংখ্যা প্রয়োজন৷
NUMBER_NOT_BETWEEN
Enum
প্রদত্ত মানগুলির মধ্যে নয় এমন একটি সংখ্যা প্রয়োজন৷
NUMBER_NOT_EQUAL_TO
Enum
প্রদত্ত মানের সমান নয় এমন একটি সংখ্যা প্রয়োজন৷
TEXT_CONTAINS
Enum
ইনপুটে প্রদত্ত মান থাকা প্রয়োজন।
TEXT_DOES_NOT_CONTAIN
Enum
ইনপুট প্রদত্ত মান ধারণ না করা আবশ্যক.
TEXT_EQUAL_TO
Enum
ইনপুট প্রদত্ত মানের সমান প্রয়োজন।
TEXT_IS_VALID_EMAIL
Enum
ইনপুট একটি ইমেল ঠিকানা আকারে প্রয়োজন যে প্রয়োজন.
TEXT_IS_VALID_URL
Enum
ইনপুটটি একটি URL আকারে থাকা প্রয়োজন৷
VALUE_IN_LIST
Enum
ইনপুট প্রদত্ত মানগুলির একটির সমান হওয়া প্রয়োজন৷
VALUE_IN_RANGE
Enum
ইনপুট প্রদত্ত পরিসরের একটি মানের সমান হওয়া প্রয়োজন৷
CUSTOM_FORMULA
Enum
প্রয়োজন যে ইনপুট প্রদত্ত সূত্রটিকে true মূল্যায়ন করে।
CHECKBOX
Enum
ইনপুট একটি কাস্টম মান বা একটি বুলিয়ান প্রয়োজন যে; একটি চেকবক্স হিসাবে রেন্ডার করা হয়েছে।
[[["সহজে বোঝা যায়","easyToUnderstand","thumb-up"],["আমার সমস্যার সমাধান হয়েছে","solvedMyProblem","thumb-up"],["অন্যান্য","otherUp","thumb-up"]],[["এতে আমার প্রয়োজনীয় তথ্য নেই","missingTheInformationINeed","thumb-down"],["খুব জটিল / অনেক ধাপ","tooComplicatedTooManySteps","thumb-down"],["পুরনো","outOfDate","thumb-down"],["অনুবাদ সংক্রান্ত সমস্যা","translationIssue","thumb-down"],["নমুনা / কোড সংক্রান্ত সমস্যা","samplesCodeIssue","thumb-down"],["অন্যান্য","otherDown","thumb-down"]],["2025-08-04 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eDataValidationCriteria\u003c/code\u003e is an enumeration used to define data validation rules for cell ranges in Google Sheets.\u003c/p\u003e\n"],["\u003cp\u003eIt provides various criteria like \u003ccode\u003eDATE_BETWEEN\u003c/code\u003e, \u003ccode\u003eNUMBER_GREATER_THAN\u003c/code\u003e, \u003ccode\u003eTEXT_CONTAINS\u003c/code\u003e, and more to enforce data integrity.\u003c/p\u003e\n"],["\u003cp\u003eTo use a specific criterion, you refer to it through \u003ccode\u003eSpreadsheetApp.DataValidationCriteria\u003c/code\u003e followed by the specific property, for instance, \u003ccode\u003eSpreadsheetApp.DataValidationCriteria.DATE_IS_VALID_DATE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe provided code example demonstrates how to modify existing data validation rules that require a date within a certain range.\u003c/p\u003e\n"]]],["`DataValidationCriteria` defines the types of data validation rules applicable to a spreadsheet range. You can retrieve or modify existing rules on a range, to change the validation criteria. For example, you can update all DATE_BETWEEN rules from a date range in 2013 to a new date range in 2014, by copying and modifying the existing rule, or set new validation criteria on a range to ensure certain data types, including dates, numbers, or text, fit within specified parameters.\n"],null,["# Enum DataValidationCriteria\n\nDataValidationCriteria\n\nAn enumeration representing the data validation criteria that can be set on a range.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.DataValidationCriteria.DATE_IS_VALID_DATE`.\n\n```javascript\n// Change existing data-validation rules that require a date in 2013 to require\n// a date in 2014.\nconst oldDates = [new Date('1/1/2013'), new Date('12/31/2013')];\nconst newDates = [new Date('1/1/2014'), new Date('12/31/2014')];\nconst sheet = SpreadsheetApp.getActiveSheet();\nconst range = sheet.getRange(1, 1, sheet.getMaxRows(), sheet.getMaxColumns());\nconst rules = range.getDataValidations();\n\nfor (let i = 0; i \u003c rules.length; i++) {\n for (let j = 0; j \u003c rules[i].length; j++) {\n const rule = rules[i][j];\n\n if (rule != null) {\n const criteria = rule.getCriteriaType();\n const args = rule.getCriteriaValues();\n\n if (criteria === SpreadsheetApp.DataValidationCriteria.DATE_BETWEEN &&\n args[0].getTime() === oldDates[0].getTime() &&\n args[1].getTime() === oldDates[1].getTime()) {\n // Create a builder from the existing rule, then change the dates.\n rules[i][j] = rule.copy().withCriteria(criteria, newDates).build();\n }\n }\n }\n}\nrange.setDataValidations(rules);\n``` \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------------------|--------|---------------------------------------------------------------------------------|\n| `DATE_AFTER` | `Enum` | Requires a date that is after the given value. |\n| `DATE_BEFORE` | `Enum` | Requires a date that is before the given value. |\n| `DATE_BETWEEN` | `Enum` | Requires a date that is between the given values. |\n| `DATE_EQUAL_TO` | `Enum` | Requires a date that is equal to the given value. |\n| `DATE_IS_VALID_DATE` | `Enum` | Requires a date. |\n| `DATE_NOT_BETWEEN` | `Enum` | Requires a date that is not between the given values. |\n| `DATE_ON_OR_AFTER` | `Enum` | Require a date that is on or after the given value. |\n| `DATE_ON_OR_BEFORE` | `Enum` | Requires a date that is on or before the given value. |\n| `NUMBER_BETWEEN` | `Enum` | Requires a number that is between the given values. |\n| `NUMBER_EQUAL_TO` | `Enum` | Requires a number that is equal to the given value. |\n| `NUMBER_GREATER_THAN` | `Enum` | Require a number that is greater than the given value. |\n| `NUMBER_GREATER_THAN_OR_EQUAL_TO` | `Enum` | Requires a number that is greater than or equal to the given value. |\n| `NUMBER_LESS_THAN` | `Enum` | Requires a number that is less than the given value. |\n| `NUMBER_LESS_THAN_OR_EQUAL_TO` | `Enum` | Requires a number that is less than or equal to the given value. |\n| `NUMBER_NOT_BETWEEN` | `Enum` | Requires a number that is not between the given values. |\n| `NUMBER_NOT_EQUAL_TO` | `Enum` | Requires a number that is not equal to the given value. |\n| `TEXT_CONTAINS` | `Enum` | Requires that the input contains the given value. |\n| `TEXT_DOES_NOT_CONTAIN` | `Enum` | Requires that the input does not contain the given value. |\n| `TEXT_EQUAL_TO` | `Enum` | Requires that the input is equal to the given value. |\n| `TEXT_IS_VALID_EMAIL` | `Enum` | Requires that the input is in the form of an email address. |\n| `TEXT_IS_VALID_URL` | `Enum` | Requires that the input is in the form of a URL. |\n| `VALUE_IN_LIST` | `Enum` | Requires that the input is equal to one of the given values. |\n| `VALUE_IN_RANGE` | `Enum` | Requires that the input is equal to a value in the given range. |\n| `CUSTOM_FORMULA` | `Enum` | Requires that the input makes the given formula evaluate to `true`. |\n| `CHECKBOX` | `Enum` | Requires that the input is a custom value or a boolean; rendered as a checkbox. |\n| `DATE_AFTER_RELATIVE` | `Enum` | Requires a date that is after the relative date value. |\n| `DATE_BEFORE_RELATIVE` | `Enum` | Requires a date that is before the relative date value. |\n| `DATE_EQUAL_TO_RELATIVE` | `Enum` | Requires a date that is equal to the relative date value. |"]]