google script wont error out on plain POST requests anymore #221

Closed
opened 2025-10-14 16:37:53 -06:00 by navan · 0 comments
Owner

Originally created by @mckennapsean on 6/19/2018

Basically, this PR lets you submit with or without the clientside JS and get the same output on the spreadsheet.

We received many error:error's from people who went through the tutorial and never added clientside JS... so I figured we could improve the experience.

The only reason we -required- clientside JS was preserving the field order. Instead, this PR lets you optionally define that field order, and only sends emails if a to address is set. These edge cases covered now let you submit without any clientside JS (you also lose our email validation & thank-you div if you don't use the clientside JS though).

Additionally, I incorporated the work introduced by @goatandsheep in #101 to support multiselects coming from just POST (no clientside processing) form data. I tested it with our sample form, and the output is now identical between our processed request & a default POST request, at least in Chrome.

*Originally created by @mckennapsean on 6/19/2018* Basically, this PR lets you submit with or without the clientside JS and get the same output on the spreadsheet. We received many error:error's from people who went through the tutorial and never added clientside JS... so I figured we could improve the experience. The only reason we -required- clientside JS was preserving the field order. Instead, this PR lets you optionally define that field order, and only sends emails if a to address is set. These edge cases covered now let you submit without any clientside JS (you also lose our email validation & thank-you div if you don't use the clientside JS though). Additionally, I incorporated the work introduced by @goatandsheep in #101 to support multiselects coming from just POST (no clientside processing) form data. I tested it with our sample form, and the output is now identical between our processed request & a default POST request, at least in Chrome.
Sign in to join this conversation.
No labels
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
Priority-1
awaiting-review
awaiting-review
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
bug
chore
chore
discuss
discuss
discuss
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
duplicate
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
epic
epic
external-dependency
external-dependency
external-dependency
hacktoberfest-accepted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
help wanted
in-progress
in-progress
in-progress
in-review
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
invalid
merge-conflicts
merge-conflicts
please-test
please-test
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
question
spam
spam
starter
starter
starter
starter
starter
starter
starter
starter
starter
technical
technical
technical
technical
technical
user-feedback
user-feedback
user-feedback
user-feedback
user-feedback
user-feedback
wontfix
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/learn-to-send-email-via-google-script-html-no-server#221
No description provided.