We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The function below prevents my form from loading once I hit the submit button however, the text in my input are not submitted to my google sheet.
Once I comment this function out, the form is submitted but it loads to my webapp. How do I resolve this?
window.addEventListener("load", function() { const form = document.getElementById('bay-form'); form.addEventListener("submit", function(e) { e.preventDefault(); const data = new FormData(form); const action = e.target.action; fetch(action, { method: 'POST', body: data, }) .then(() => { alert("Success!"); }) }); });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The function below prevents my form from loading once I hit the submit button however, the text in my input are not submitted to my google sheet.
Once I comment this function out, the form is submitted but it loads to my webapp. How do I resolve this?
window.addEventListener("load", function() {
const form = document.getElementById('bay-form');
form.addEventListener("submit", function(e) {
e.preventDefault();
const data = new FormData(form);
const action = e.target.action;
fetch(action, {
method: 'POST',
body: data,
})
.then(() => {
alert("Success!");
})
});
});
The text was updated successfully, but these errors were encountered: