簡單的 google app script,用於回信給填答 google 表單者
An simple google app script for replying email to who submit google form (for now only text)
可以使用以下兩種方式之一去新建email的欄位
choose a way to get a email field
- 在問題欄位中新增email的欄位
create a field for email field
- 在設定中選取 回覆 > 收集電子郵件地址
select setting > reply > collect email address
從表單中回覆部分的右上角點選「試算表圖示」建立試算表
in form,select sheet icon to create a google sheet
從試算表中工具列選取 > 工具 > 指令碼編輯器
open google sheet,select tools from toolbar then open script editor
程式碼中 getRange("B") 代表試算表中 B 欄位,所以請確認 B 欄是存放 mail 資訊的欄位,或調整程式碼為相應欄位
the code part getRange("B") means column "B" ; so make sure your column B in sheet is mail column or replace to another column alphabet
可貼上取代該段程式碼:範例 並儲存
can paste code from here:example and saved
調整欲回覆信件標題與內容 (subject為信件標題,message為信件內容)
edit the email subject and body, ( at code part line 6 & 7 )
點選左方工具列 > 觸發項目,新增觸發條件
select toolbar from left side ,click triggering conditions and add new trigger condition
選取活動類型為 「提交表單」時
select activate type : when submitting the form
給予此指令碼相關授權以執行程式
Provide authorization for program execution
注意:程式碼中 getRange("B") 代表試算表中 B 欄位,所以請確認 B 欄是存放 mail 資訊的欄位,或調整程式碼為相應欄位
notice: the code part getRange("B") means column "B" ; so make sure your column B in sheet is mail column or replace to another column alphabet