Skip to content

Instantly share code, notes, and snippets.

@pavlo-bondarchuk
Created January 7, 2020 12:54
Show Gist options
  • Select an option

  • Save pavlo-bondarchuk/52eb681fc4c6c58bf2e755e2b2fe9059 to your computer and use it in GitHub Desktop.

Select an option

Save pavlo-bondarchuk/52eb681fc4c6c58bf2e755e2b2fe9059 to your computer and use it in GitHub Desktop.
How to Submit an HTML Form to Google Sheets…without Google Forms
var $form = $('form#telegram'),
url = 'https://script.google.com/macros/s/------/exec'
$('.telegram').submit(function (e) {
e.preventDefault();
$.ajax({
url: url,
method: "GET",
dataType: "json",
data: $(this).serialize()
}).done(
// do something
);
})
///https://medium.com/@dmccoy/how-to-submit-an-html-form-to-google-sheets-without-google-forms-b833952cc175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment