Skip to content

Instantly share code, notes, and snippets.

View Taosif7's full-sized avatar
🎯
Focusing

Taosif Jamal Taosif7

🎯
Focusing
View GitHub Profile
@baymac
baymac / Form.gs
Created January 1, 2019 21:04
App Script to send the response from Google Form to Firebase
function onFormSubmit(e) {
var form = FormApp.openById('1Z65umQSZ2drz3MvTWCWlwP4-ySeoB5D7RvX1LtusnEU');
var formResponses = form.getResponses();
var latestResponse = formResponses.length - 1;
var formResponse = formResponses[latestResponse];
var email = formResponse.getRespondentEmail();
var items = formResponse.getItemResponses();