Google Apps Script API
    Preparing search index...

    A single choice associated with a type of Item that supports choices, like CheckboxItem, ListItem, or MultipleChoiceItem.

    // Create a new form and add a multiple-choice item.
    var form = FormApp.create('Form Name');
    var item = form.addMultipleChoiceItem();
    item.setTitle('Do you prefer cats or dogs?')
        .setChoices([
            item.createChoice('Cats', FormApp.PageNavigationType.CONTINUE),
            item.createChoice('Dogs', FormApp.PageNavigationType.RESTART)
        ]);
    
    // Add another page because navigation has no effect on the last page.
    form.addPageBreakItem().setTitle('You chose well!');
    
    // Log the navigation types that each choice results in.
    var choices = item.getChoices();
    for (var i = 0; i < choices.length; i++) {
    Logger.log('If the respondent chooses "%s", the form will %s.',
               choices[i].getValue(),
               choices[i].getPageNavigationType());
    }
    
    interface Choice {
        getGotoPage(): PageBreakItem;
        getPageNavigationType(): PageNavigationType;
        getValue(): string;
        isCorrectAnswer(): boolean;
    }
    Index

    Methods