Enum ItemType
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
항목유형
지원되는 양식 항목 유형을 나타내는 enum입니다. 항목 유형은 FormApp.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 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(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. |"]]