stevenschmatz / export-google-form

:arrow_down_small: A small Google Apps Script file to export a form into a JSON file.
MIT License
105 stars 43 forks source link

Get title missing from LIST, CHECKBOX and MULTIPLECHOICE #7

Open seinecle opened 4 years ago

seinecle commented 4 years ago

Simply add data.title = typedItem.getTitle(); -> like so:

switch (item.getType()) {
    case FormApp.ItemType.LIST:
    case FormApp.ItemType.CHECKBOX:
    case FormApp.ItemType.MULTIPLE_CHOICE:
      data.title = typedItem.getTitle();
      data.choices = typedItem.getChoices().map(function(choice) {
        return choice.getValue();
      });
      break;