You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:warning: Note: You *must* select the `Anyone, even anonymous` option for the 'Who has access to the app' dropdown or form responses will not be added to the spreadsheet! :warning:
@@ -230,7 +230,7 @@ You can modify this though, via the script editor. The line:
230
230
result +="<h4 style='text-transform: capitalize; margin-bottom: 0'>"+ key +"</h4><div>"+ obj[key] +"</div>";
231
231
```
232
232
233
-
has all you need. You can adjust the markup to suit you. We chose an `<h4>` because it was the best size for the email, and added the small amount of CSS to it to fix the capitalisation (the keys are all lower case in the JS object) and a bit of default spacing. While inline styles like this are generally bad practice on normal web pages, for email HTML they're about the only reliable way to do CSS!
233
+
has all you need. You can adjust the markup to suit you. We chose an `<h4>` because it was the best size for the email, and added the small amount of CSS to it to fix the capitalisation (the keys are all lower case in the JS object) and a bit of default spacing. While inline styles like this are generally bad practice on normal web pages, for email HTML they're about the only reliable way to do CSS!
234
234
We went with a `<div>` for the value part, because it could be anything - single-line, multiline (a `<p>` for example wouldn't cut it).
235
235
236
236
While we're here, there's also a `replyTo` option for the `sendEmail()` method which is commented out by default:
@@ -260,7 +260,7 @@ the data into a spreadsheet is safer and less prone to data loss.
This will record the data received from the `POST` as a *row* in the spreadsheet.
263
+
This will record the data received from the `POST` as a *row* in the spreadsheet.
264
264
See: [**google-apps-script.js**](google-apps-script.js) for the full code you can *copy-paste*.
265
265
266
266
### 15. Save a New Version and Re-Publish it
@@ -381,6 +381,9 @@ Let us know if you have any questions!
381
381
382
382
- No. While data that is sent over POST may be more protected, the information could easily be intercepted by a third party or middleman, and Google has complete access to the data inside a Google Spreadsheet. Email is also not a very secure communication medium by default. We would recommend you invest in a secure platform and server for storing your data if this is a requirement.
383
383
384
+
8._What if my data is sent or stored in the wrong order?_
385
+
386
+
- If your data is in the wrong order, it is recommended to verify that you are loading the clientside JS correctly. The most effective way to do this is to place a `debugger` call inside the `handleFormSubmit()` function, and, if it hits the debugger and opens the respective Dev Tools for the broswer/environment, then the clientside JS is being loaded correctly. If the debugger isn't hit, then the JS is **not** either not loaded or not targeting your form, defaulting the data to a plain object which will have its own alphabetic ordering instead.
0 commit comments