我通過 Google App 腳本創建了一個 Google 電子表格和一個 Google 表單,并希望將表單中的所有回應自動添加到我的電子表格中的作業表中。
如果您手動執行此選項,則可以使用此選項,但我無法在 Google App Script 中找到自動執行此選項的選項。
我在 StackOverflow 上看到了一些從電子表格填充表單的答案,但我需要相反的情況。
那可能嗎?
uj5u.com熱心網友回復:
使用Form.setDestination(),如下所示:
const ss = SpreadsheetApp.create('Response destination spreadsheet');
const form = FormApp
.create('New form name')
.setDestination(FormApp.DestinationType.SPREADSHEET, ss.getId());
uj5u.com熱心網友回復:
Google 表單有一項設定,可讓您將表單回復發送到 Google 表格。這可以是新的或現有的電子表格。
在您選擇的表格中,單擊回復選項卡。
- 單擊位于 Google 表格圖示旁邊的三個點按鈕。
- 單擊從下拉串列中選擇回應目的地。
- 選擇現有電子表格。
如果你想通過腳本來做,因為表單已經創建
var form = FormApp.openById('id of the form');
form.setDestination(FormApp.DestinationType.SPREADSHEET, 'id of the spreadsheet);
目的地型別
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/489487.html
