teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

1

a

2020/03/04 15:01

投稿

papinianus
papinianus

スコア12705

answer CHANGED
@@ -4,9 +4,9 @@
4
4
  const colAB = vals.map(e=>e[27]).filter(e=>e !== "");
5
5
  const colAC = vals.map(e=>e[28]).slice(0,2);
6
6
  const choices = colAB.concat(colAC);
7
- FormApp.openById("id").getItems(FormApp.ItemType.CHECKBOX).forEach(i=>{
7
+ FormApp.openById("id").getItems(FormApp.ItemType.MULTIPLE_CHOICE).forEach(i=>{
8
8
  if(i.getTitle().indexOf("参加希望日程") === -1) return;
9
- i.asCheckboxItem().setChoiceValues(choices);
9
+ i.asMultipleChoiceItem().setChoiceValues(choices);
10
10
  });
11
11
  }
12
12
  ```