Skip to content

Conversation

@sashn
Copy link

@sashn sashn commented Apr 20, 2021

  • the example in jamiewilson/form-to-google-sheets is awesome and has helped me a lot.
  • but i continually stumbled over the response, when being logged in the Promise chain
  • i kept getting the same Response {type: "cors", url: "...", redirected: true, status: 200, ok: true, …}, no matter what i returned from the doPost method in GAS
  • until i found an SO thread which gave the solution to insert response.json() into the Promise chain
  • also i found that the section 4. Add a new project trigger is unnecessary because doPost(e) is already a reserved function and as such part of the Simple triggers. thus i removed the installed trigger for me and everything still worked. so i removed this section from README.md. in this PR

sashn added 4 commits April 20, 2021 18:59
- added the response.json() according to the change in index.html
- removed the part about the project trigger entirely, because, as a reserved function, doPost(e) is part of the simple triggers in GAS and should work without adding a custom trigger
messed up this link by removing a section
also messed up this links
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant