Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixing response view in frontend JS #48

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

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

- 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.

None yet

1 participant