Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get title missing from LIST, CHECKBOX and MULTIPLECHOICE #7

Open
seinecle opened this issue Apr 17, 2020 · 0 comments
Open

Get title missing from LIST, CHECKBOX and MULTIPLECHOICE #7

seinecle opened this issue Apr 17, 2020 · 0 comments

Comments

@seinecle
Copy link

@seinecle seinecle commented Apr 17, 2020

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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.