Google Apps Script API
    Preparing search index...

    A question item that allows the respondent to select one choice from a drop-down list. Items can be accessed or created from a Form.

    // Open a form by ID and add a new list item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addListItem();
    item.setTitle('Do you prefer cats or dogs?')
        .setChoices([
            item.createChoice('Cats'),
            item.createChoice('Dogs')
        ]);
    
    interface ListItem {
        createChoice(value: string): Choice;
        createChoice(value: string, isCorrect: boolean): Choice;
        createChoice(value: string, navigationItem: PageBreakItem): Choice;
        createChoice(value: string, navigationType: PageNavigationType): Choice;
        createResponse(response: string): ItemResponse;
        duplicate(): GoogleAppsScript.Forms.ListItem;
        getChoices(): Choice[];
        getFeedbackForCorrect(): QuizFeedback;
        getFeedbackForIncorrect(): QuizFeedback;
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getPoints(): number;
        getTitle(): string;
        getType(): ItemType;
        isRequired(): boolean;
        setChoices(choices: Choice[]): GoogleAppsScript.Forms.ListItem;
        setChoiceValues(values: string[]): GoogleAppsScript.Forms.ListItem;
        setFeedbackForCorrect(
            feedback: QuizFeedback,
        ): GoogleAppsScript.Forms.ListItem;
        setFeedbackForIncorrect(
            feedback: QuizFeedback,
        ): GoogleAppsScript.Forms.ListItem;
        setHelpText(text: string): GoogleAppsScript.Forms.ListItem;
        setPoints(points: number): GoogleAppsScript.Forms.ListItem;
        setRequired(enabled: boolean): GoogleAppsScript.Forms.ListItem;
        setTitle(title: string): GoogleAppsScript.Forms.ListItem;
    }
    Index

    Methods