Giter Site home page Giter Site logo

Comments (8)

mckennapsean avatar mckennapsean commented on May 9, 2024 1

This project is not necessarily geared towards Google Forms, but rather for you to build your own forms (and a way to interface with Google Spreadsheets too). You can use some of the javascript code to send you an email, which seems to be working fine.

I tried making a NEW google spreadsheet, and use all the code here to see if I can upload data INTO the spreadsheet. And it worked! I did have to follow all steps here (managing versions to create a new one with the script code, running the "setup" function, deploying as a web app, agreeing to permissions, etc.). Also, the Google Spreadsheet, MUST have all the field names you want to fill in as columns as well as a spreadsheet sheet name of "responses" (or else change this name in the script). After making these changes, it all worked flawlessly for me from a brand new Google Spreadsheet. Make sure you follow all the steps to do this correctly! Let us know if there are other issues or ways to improve the instructions. Thanks :)

from learn-to-send-email-via-google-script-html-no-server.

Min11Benja avatar Min11Benja commented on May 9, 2024 1

I had the same issue, tweaked at it for hours. Yes I forgot to set the access to"anyone, even anonymous" lol so frustrating xD thank god for this post. Thank you guys for making this and giving a step by step instructions.

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 9, 2024

Not quite sure I understand. It sounds like you are using Google Forms, which is a cool way to create web forms, and you are using it to store information in a spreadsheet. And, it sounds like you may be using this repository as a way to get an email to the manager of the form, so that they get user input as it arrives. Is this all correct?

It sounds like the issue you are reporting is that the script is not working to load data into the spreadsheet. I have tried this with an existing form I have, and tried a new script, and both worked. Perhaps starting a completely new, from scratch spreadsheet would lead to these issues. Is that what you are running into?

Lastly, if all you want to do is send a form to someone's email, I think there is a built in way to do just that... https://www.maketecheasier.com/send-email-notifications-google-forms/

from learn-to-send-email-via-google-script-html-no-server.

mvarona avatar mvarona commented on May 9, 2024

Yes, I run into this issue when creating a new form from scratch with the script. The script works well until it comes to pass the data to the Google Spreadsheets, that part is not working. I though it was just something mine but I have checked my code many times, and I have seen here that other guys are facing the same problem.

I blame to Google's programatically new way to create their forms, which maybe is gumming up your script, or maybe it's my fault. It doesn't mind because I discovered this approach: wrapping your custom form into an iframe, and then, with ajax submitting two server actions: one to the Google Forms original URL, so that the data is stored into the Spreadsheet, and another –just in case Google changes something in the future, obfuscates its code or something like that– which uses your script to send a copy to the manager's mail. This way you can forget about check your Spreadsheet because if it not up to date, your emails will be.

I don't want the built in way of email notifications because they only notify you when a user has submitted your form, but it doesn't send you their data, so you can't check if it is properly being saved into the Spreadsheet.

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 9, 2024

This could be related to #45, as the data is not going into the spreadsheet. Basically, you must follow steps 13-16 in order to properly get data stored into the spreadsheet! Hope that helps. Feel free to file another issue if there is something else going on.

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 9, 2024

Also, another issue could be not following Step 5 correctly to set the script's access to "anyone, even anonymous". See #47

from learn-to-send-email-via-google-script-html-no-server.

steveberkhan avatar steveberkhan commented on May 9, 2024

mckennapsean commented 10 days ago

Also, another issue could be not following Step 5 correctly to set the script's access to "anyone, even anonymous". See #47

thank you so much, i think this issue thread is the solution to my problem, first of all i forgot to set the script's access to "anyone, even anonymous", so that was my problem 1 solved. Secondly that "doesn't adding to sheet problem". Thank you so much for letting me know this thread @mckennapsean

from learn-to-send-email-via-google-script-html-no-server.

mckennapsean avatar mckennapsean commented on May 9, 2024

Glad to hear it worked out!

from learn-to-send-email-via-google-script-html-no-server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.