回答編集履歴

1

ツールを追加しました

2025/02/01 01:27

投稿

YellowGreen
YellowGreen

スコア861

test CHANGED
@@ -35,6 +35,22 @@
35
35
  const index = getProductSectionIndex_(product, items);
36
36
  const item = items[index + 1];
37
37
  updateMeetingTimeChoices_(item, '_');
38
+ }
39
+
40
+ // すべての製品の選択肢を初期値で更新
41
+ function updateAllChoices() {
42
+ const products = [
43
+ '製品A',
44
+ '製品B',
45
+ '製品C',
46
+ '製品D',
47
+ '製品E',
48
+ '製品F',
49
+ ]
50
+ for (const product of products) {
51
+ console.log('%s を処理中…', product);
52
+ updateChoices(product);
53
+ }
38
54
  }
39
55
 
40
56
  // フォームの選択肢から回答のあったものを削除