Comments (8)
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.
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.
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.
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.
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.
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.
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.
Glad to hear it worked out!
from learn-to-send-email-via-google-script-html-no-server.
Related Issues (20)
- Concatenating Name and String to make a custom subject for each email. HOT 12
- Help with customizing the email sent HOT 1
- Redirecting? HOT 4
- Can You please provide video.
- Adding new entries to the top of google sheet HOT 3
- send email via google script html
- ajax post works on pc but doesnt on mobile phones? HOT 1
- Checkbox input fields issue HOT 1
- Hide hidden input fields in email HOT 3
- update & fix readme links
- update links
- update researching recommendations on user privacy link HOT 1
- Thank You message doesn't disply HOT 1
- Receive Pictures and Documents HOT 4
- Mail is no longer delivered HOT 7
- {"result":"error","error":{"message":"\"TO_ADDRESS\" is not defined.","name":"ReferenceError","fileName":"script","lineNumber":56,"stack":"\tat script:56 (doPost)\n"}} HOT 2
- reload upon submission HOT 2
- It only works on PC, Windows, and Android. HOT 5
- QUESTION - Does This Work With React? HOT 4
- File input
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learn-to-send-email-via-google-script-html-no-server.