From ce8152ff90260cac8b2bff36cbe91bb29a80447f Mon Sep 17 00:00:00 2001 From: Dalton Date: Fri, 28 Feb 2020 17:18:21 -0800 Subject: [PATCH] Fixing attribute name mismatch (#360) The attribute name in the JS did not match what the google script was looking for. --- form-submission-handler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/form-submission-handler.js b/form-submission-handler.js index 682fba1..d65efdb 100644 --- a/form-submission-handler.js +++ b/form-submission-handler.js @@ -44,7 +44,7 @@ // add form-specific values into the data formData.formDataNameOrder = JSON.stringify(fields); formData.formGoogleSheetName = form.dataset.sheet || "responses"; // default sheet name - formData.formGoogleSend + formData.formGoogleSendEmail = form.dataset.email || ""; // no email by default return {data: formData, honeypot: honeypot}; @@ -102,4 +102,4 @@ buttons[i].disabled = true; } } -})(); \ No newline at end of file +})();