- Create Google Forms
- First question:
Your name
- Second question:
Email Address
- Create answer SpreadSheet and rename sheet
Attendance
- Add some columns
code
: stringstatus
column: check box
- Clone this project
- Create
.clasp.json
{
"scriptId":"<<YOUR APP SCRIPT PROJECT ID>>",
"rootDir": "./src"
}
npx forked-clasp login
- Visit
https://script.google.com/home/usersettings
to enable Google Apps Script npx forked-clasp push
npx forked-clasp open
and register trigger
- function:
onFormSubmit
- trigger type: form
- Deploy web app
- Create "QR Code Reader" Act
- Create new Cast
- service
- Webhook
- URL
- your Google Apps Script application URL
- Method
- POST
- Body
{"code":"{{ data.code }}"}