Comments (1)
What worked for me was:
-
set the Web App access/auth, "Who has access" to Anyone.
you can do this in appscript by clicking Deploy, Manage Deployments, edit -
then in your html file after closing tag:
<script>
window.addEventListener("load", function() {
const scriptURL = '<YOUR SCRIPT URL>'
const form = document.getElementById('id of your form');
form.addEventListener("submit", function(e) {
e.preventDefault();
const data = new FormData(form);
fetch(scriptURL, {
method: 'POST',
body: data,
mode: 'no-cors', // unsure if this is needed since access changed to anyone
})
.then(() => {
window.top.location.href = 'your page url';
})
});
});
</script>
from form-to-google-sheets.
Related Issues (20)
- Contact
- Modifying sheet name in script and of spreadsheet causes failure HOT 1
- Adding date and time to the sheet when the form is submitted HOT 1
- Data not showing when form is filed from any other location HOT 1
- What about security? Anybody can do fishing attack on spreadsheet, HOT 3
- Support for images
- timestamp not appear HOT 1
- Form Submission Landing "Thank You" Page HOT 1
- sheet not writing anything HOT 1
- Not working when sheetName other than 'Sheet1' HOT 2
- Data not being processed to form
- How to show thank you page or success message after form submission. HOT 3
- Redirecting issue when using polyfills HOT 2
- How to add captcha?
- How to have multiple forms with different sheets?
- Timestamp on the Google Sheet ?
- How to use in React.js
- How to redirect it to homepage instead of showing this in new tab. HOT 1
- Data from checkbox submission not showing in google sheet. HOT 1
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 form-to-google-sheets.