-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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