├── AppScriptCode.js └── README.md /AppScriptCode.js: -------------------------------------------------------------------------------- 1 | const sheets = SpreadsheetApp.openByUrl("https://docs.google.com/spreadsheets/d/1wugpx5COQWP0XUWDI5f-tvLiuZW-GYiyGcXXNFR-JOQ/edit#gid=0"); 2 | //if you have changed your sheet name then replace the below Sheet1 with your sheet name 3 | const sheet = sheets.getSheetByName("Page1"); 4 | function doPost(e){ 5 | let data = e.parameter; 6 | sheet.appendRow([data.Name,data.Email,data.Message]); 7 | return ContentService.createTextOutput("Your message was successfully sent to the Googlesheet database!"); 8 | } 9 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FormData-to-Google-Sheet 2 | This contains the code to input in your Google Sheet AppScript and then you can edit to suite your project. 3 | # See the tutorial video here: 4 | How to Send Form Data To Google Sheet In React Website | Google Sheet As... https://youtu.be/ZA6j2PhXSUg via @YouTube 5 | --------------------------------------------------------------------------------