Google Apps Script API
    Preparing search index...

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

    // Open a form by ID and add a new grid item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addGridItem();
    item.setTitle('Rate your interests')
        .setRows(['Cars', 'Computers', 'Celebrities'])
        .setColumns(['Boring', 'So-so', 'Interesting']);
    
    interface GridItem {
        clearValidation(): GoogleAppsScript.Forms.GridItem;
        createResponse(responses: string[]): ItemResponse;
        duplicate(): GoogleAppsScript.Forms.GridItem;
        getColumns(): string[];
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getRows(): string[];
        getTitle(): string;
        getType(): ItemType;
        isRequired(): boolean;
        setColumns(columns: string[]): GoogleAppsScript.Forms.GridItem;
        setHelpText(text: string): GoogleAppsScript.Forms.GridItem;
        setRequired(enabled: boolean): GoogleAppsScript.Forms.GridItem;
        setRows(rows: string[]): GoogleAppsScript.Forms.GridItem;
        setTitle(title: string): GoogleAppsScript.Forms.GridItem;
        setValidation(validation: GridValidation): GoogleAppsScript.Forms.GridItem;
    }
    Index

    Methods