Enum ItemType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
আইটেম প্রকার ফর্ম আইটেম সমর্থিত ধরনের প্রতিনিধিত্ব একটি enum. আইটেমের প্রকারগুলি Form App.ItemType
।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, FormApp.ItemType.CHECKBOX
।
// Open a form by ID and add a new section header.
const form = FormApp.create('Form Name');
const item = form.addSectionHeaderItem();
item.setTitle('Title of new section');
// Check the item type.
if (item.getType() === FormApp.ItemType.SECTION_HEADER) {
item.setHelpText('Description of new section.');
}
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
CHECKBOX | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে এক বা একাধিক চেকবক্স নির্বাচন করতে দেয়, সেইসাথে একটি ঐচ্ছিক "অন্যান্য" ক্ষেত্র। |
CHECKBOX_GRID | Enum | একটি প্রশ্ন আইটেম, কলাম এবং সারিগুলির একটি গ্রিড হিসাবে উপস্থাপিত, যা উত্তরদাতাকে চেকবক্সগুলির একটি ক্রম থেকে প্রতি সারিতে একাধিক পছন্দ নির্বাচন করতে দেয়৷ |
DATE | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি তারিখ নির্দেশ করতে দেয়। |
DATETIME | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি তারিখ এবং সময় নির্দেশ করতে দেয়৷ |
DURATION | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি দৈর্ঘ্য নির্দেশ করতে দেয়। |
GRID | Enum | একটি প্রশ্ন আইটেম, কলাম এবং সারিগুলির একটি গ্রিড হিসাবে উপস্থাপিত, যা উত্তরদাতাকে রেডিও বোতামগুলির একটি ক্রম থেকে প্রতি সারিতে একটি পছন্দ নির্বাচন করতে দেয়৷ |
IMAGE | Enum | একটি লেআউট আইটেম যা একটি চিত্র প্রদর্শন করে। |
LIST | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি ড্রপ-ডাউন তালিকা থেকে একটি পছন্দ নির্বাচন করতে দেয়৷ |
MULTIPLE_CHOICE | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে রেডিও বোতাম বা একটি ঐচ্ছিক "অন্যান্য" ক্ষেত্রের তালিকা থেকে একটি পছন্দ নির্বাচন করতে দেয়৷ |
PAGE_BREAK | Enum | একটি লেআউট আইটেম যা একটি পৃষ্ঠার শুরু চিহ্নিত করে। |
PARAGRAPH_TEXT | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে পাঠ্যের একটি ব্লক প্রবেশ করতে দেয়। |
RATING | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি রেটিং দিতে অনুমতি দেয়। |
SCALE | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে রেডিও বোতামগুলির একটি সংখ্যাযুক্ত ক্রম থেকে একটি বিকল্প বেছে নিতে দেয়৷ |
SECTION_HEADER | Enum | একটি লেআউট আইটেম যা দৃশ্যত একটি বিভাগের শুরু নির্দেশ করে। |
TEXT | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে পাঠ্যের একটি লাইন প্রবেশ করতে দেয়। |
TIME | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে দিনের একটি সময় নির্দেশ করতে দেয়। |
VIDEO | Enum | একটি লেআউট আইটেম যা একটি YouTube ভিডিও প্রদর্শন করে। |
FILE_UPLOAD | Enum | একটি প্রশ্ন আইটেম যা উত্তরদাতাকে একটি ফাইল আপলোড করতে দেয়৷ |
UNSUPPORTED | Enum | একটি আইটেম যা বর্তমানে API-এর মাধ্যমে সমর্থিত নয়। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-25 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eItemType\u003c/code\u003e is an enum representing the types of items you can add to a Google Form, such as questions, images, and page breaks.\u003c/p\u003e\n"],["\u003cp\u003eYou can access \u003ccode\u003eItemType\u003c/code\u003e properties like \u003ccode\u003eCHECKBOX\u003c/code\u003e, \u003ccode\u003eTEXT\u003c/code\u003e, and \u003ccode\u003ePAGE_BREAK\u003c/code\u003e using \u003ccode\u003eFormApp.ItemType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eEach \u003ccode\u003eItemType\u003c/code\u003e property represents a different kind of form element you can add and manipulate using Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003eitem.getType()\u003c/code\u003e to determine the type of an existing item in your form and adjust its properties accordingly.\u003c/p\u003e\n"]]],[],null,["# Enum ItemType\n\nItemType\n\nAn enum representing the supported types of form items. Item types can be accessed from [FormApp.ItemType](/apps-script/reference/forms/form-app#ItemType).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nFormApp.ItemType.CHECKBOX`.\n\n```javascript\n// Open a form by ID and add a new section header.\nconst form = FormApp.create('Form Name');\nconst item = form.addSectionHeaderItem();\nitem.setTitle('Title of new section');\n\n// Check the item type.\nif (item.getType() === FormApp.ItemType.SECTION_HEADER) {\n item.setHelpText('Description of new section.');\n}\n``` \n\n### Properties\n\n| Property | Type | Description |\n|-------------------|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `CHECKBOX` | `Enum` | A question item that allows the respondent to select one or more checkboxes, as well as an optional \"other\" field. |\n| `CHECKBOX_GRID` | `Enum` | A question item, presented as a grid of columns and rows, that allows the respondent to select multiple choices per row from a sequence of checkboxes. |\n| `DATE` | `Enum` | A question item that allows the respondent to indicate a date. |\n| `DATETIME` | `Enum` | A question item that allows the respondent to indicate a date and time. |\n| `DURATION` | `Enum` | A question item that allows the respondent to indicate a length of time. |\n| `GRID` | `Enum` | A question item, presented as a grid of columns and rows, that allows the respondent to select one choice per row from a sequence of radio buttons. |\n| `IMAGE` | `Enum` | A layout item that displays an image. |\n| `LIST` | `Enum` | A question item that allows the respondent to select one choice from a drop-down list. |\n| `MULTIPLE_CHOICE` | `Enum` | A question item that allows the respondent to select one choice from a list of radio buttons or an optional \"other\" field. |\n| `PAGE_BREAK` | `Enum` | A layout item that marks the start of a page. |\n| `PARAGRAPH_TEXT` | `Enum` | A question item that allows the respondent to enter a block of text. |\n| `RATING` | `Enum` | A question item that allows the respondent to give a rating. |\n| `SCALE` | `Enum` | A question item that allows the respondent to choose one option from a numbered sequence of radio buttons. |\n| `SECTION_HEADER` | `Enum` | A layout item that visually indicates the start of a section. |\n| `TEXT` | `Enum` | A question item that allows the respondent to enter a single line of text. |\n| `TIME` | `Enum` | A question item that allows the respondent to indicate a time of day. |\n| `VIDEO` | `Enum` | A layout item that displays a YouTube video. |\n| `FILE_UPLOAD` | `Enum` | A question item that lets the respondent upload a file. |\n| `UNSUPPORTED` | `Enum` | An item that is currently not supported through APIs. |"]]