dimanche 5 avril 2015

How do I include form data in email to SUBMITTER?

I am trying to include in the email notification to the submitter/user (person filling out the form) the form the data from the form that the put into the form. I found this tutorial on including it in the email to myself as the owner of the form (http://ift.tt/wkiv7w), and it works great, but I want to send that information to the person who filled out the form.


I have tried replacing this code:



var email = Session.getActiveUser().getEmail();


with this code:



var email = e.namedValues["Email Address"].toString();


That doesn't seem to be the trick. I double-checked the field name in the form/response spreadsheet, and it does match "Email Address." I also made that a required field in the form.


Could someone assist me with this?


Aucun commentaire:

Enregistrer un commentaire