Enum ItemType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
ItemType is an enum representing the supported types of form items in Google Forms.
Item types can be accessed using
FormApp.ItemType.The available Item Types include various question types like CHECKBOX, MULTIPLE_CHOICE, TEXT, and layout items like IMAGE, SECTION_HEADER, and VIDEO.
An enum representing the supported types of form items. Item types can be accessed fromForm.
To call an enum, you call its parent class, name, and property. For example,FormApp.ItemType.CHECKBOX.
// Open a form by ID and add a new section header.constform=FormApp.create('Form Name');constitem=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.');}
Properties
| Property | Type | Description |
|---|---|---|
CHECKBOX | Enum | A question item that allows the respondent to select one or more checkboxes, as well as anoptional "other" field. |
CHECKBOX_GRID | Enum | A question item, presented as a grid of columns and rows, that allows the respondent to selectmultiple choices per row from a sequence of checkboxes. |
DATE | Enum | A question item that allows the respondent to indicate a date. |
DATETIME | Enum | A question item that allows the respondent to indicate a date and time. |
DURATION | Enum | A question item that allows the respondent to indicate a length of time. |
GRID | Enum | A question item, presented as a grid of columns and rows, that allows the respondent to selectone choice per row from a sequence of radio buttons. |
IMAGE | Enum | A layout item that displays an image. |
LIST | Enum | A question item that allows the respondent to select one choice from a drop-down list. |
MULTIPLE_CHOICE | Enum | A question item that allows the respondent to select one choice from a list of radio buttons oran optional "other" field. |
PAGE_BREAK | Enum | A layout item that marks the start of a page. |
PARAGRAPH_TEXT | Enum | A question item that allows the respondent to enter a block of text. |
RATING | Enum | A question item that allows the respondent to give a rating. |
SCALE | Enum | A question item that allows the respondent to choose one option from a numbered sequence ofradio buttons. |
SECTION_HEADER | Enum | A layout item that visually indicates the start of a section. |
TEXT | Enum | A question item that allows the respondent to enter a single line of text. |
TIME | Enum | A question item that allows the respondent to indicate a time of day. |
VIDEO | Enum | A layout item that displays a YouTube video. |
FILE_UPLOAD | Enum | A question item that lets the respondent upload a file. |
UNSUPPORTED | Enum | An item that is currently not supported through APIs. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-11 UTC.