Google Apps Script API
    Preparing search index...

    A question item that allows the respondent to select one choice from a list of radio buttons or an optional "other" field. Items can be accessed or created from a Form. When used in a quiz, these items are autograded.

    // Open a form by ID and add a new multiple choice item.
    var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz');
    var item = form.addMultipleChoiceItem();
    item.setTitle('Do you prefer cats or dogs?')
        .setChoices([
            item.createChoice('Cats'),
            item.createChoice('Dogs')
         ])
        .showOtherOption(true);
    
    interface MultipleChoiceItem {
        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(): MultipleChoiceItem;
        getChoices(): Choice[];
        getFeedbackForCorrect(): QuizFeedback;
        getFeedbackForIncorrect(): QuizFeedback;
        getHelpText(): string;
        getId(): number;
        getIndex(): number;
        getPoints(): number;
        getTitle(): string;
        getType(): ItemType;
        hasOtherOption(): boolean;
        isRequired(): boolean;
        setChoices(choices: Choice[]): MultipleChoiceItem;
        setChoiceValues(values: string[]): MultipleChoiceItem;
        setFeedbackForCorrect(feedback: QuizFeedback): MultipleChoiceItem;
        setFeedbackForIncorrect(feedback: QuizFeedback): MultipleChoiceItem;
        setHelpText(text: string): MultipleChoiceItem;
        setPoints(points: number): MultipleChoiceItem;
        setRequired(enabled: boolean): MultipleChoiceItem;
        setTitle(title: string): MultipleChoiceItem;
        showOtherOption(enabled: boolean): MultipleChoiceItem;
    }
    Index

    Methods