Professional Documents
Culture Documents
LAURENCE SVEKIS
- Over 300 courses in technology and
web applications.
- 20 years of JavaScript web
programming experience
- 500,000+ students across multiple
platforms
- Digital instructor since 2002
permissions
Fill Out Form Try Trigger
Go to your form and fill it
out and submit.
Open the script editor and
view the logs. You should
have data there and also
your spreadsheet should have
content.
Event Object
More info on the event
object is here.
https://developers.google.co
m/apps-script/guides/trigger
s/events
m/apps-script/reference/mail UrlFetchApp.fetch('http://www.discoveryvip.com/img/d.png').getBlob().setName("comLogo
Blob");
MailApp.sendEmail({
/mail-app to: "gappscourses@gmail.com"
, subject: "Form Submission"
You can send HTML emails and , htmlBody: "Guess what a new form submission has been completed<br>" + "Its
HTML so cool stuff you can do <img src='cid:companyLogo'>"
, inlineImages: {
even get images from the web }
companyLogo: comLogoBlob
});
to place into your email. }
e/triggers
Your form should submit and
send the contents to the
email and yoru email as cc.
Next Steps
You can add more advanced function onFormSubmit(e) {
var html = '<h1>Form Data</h1>';
for (key in obj) {
functionality in your };
html += '<div><b>' + key + '</b>: ' + obj[key] + '</div>';