Google Apps Script API
    Preparing search index...

    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. Items can be accessed or created from a Form.

    // Open a form by ID and add a new checkgox grid item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addCheckboxGridItem();
    item.setTitle('Where did you celebrate New Years?')
      .setRows(['New York', 'San Francisco', 'London'])
      .setColumns(['2014', '2015', '2016', '2017']);
    
    interface CheckboxGridItem {
        clearValidation(): CheckboxGridItem;
        createResponse(responses: string[][]): ItemResponse;
        duplicate(): CheckboxGridItem;
        getColumns(): string[];
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getRows(): string[];
        getTitle(): string;
        getType(): ItemType;
        isRequired(): boolean;
        setColumns(columns: string[]): CheckboxGridItem;
        setHelpText(text: string): CheckboxGridItem;
        setRequired(enabled: boolean): CheckboxGridItem;
        setRows(rows: string[]): CheckboxGridItem;
        setTitle(title: string): CheckboxGridItem;
        setValidation(validation: CheckboxGridValidation): CheckboxGridItem;
    }
    Index

    Methods