Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function doPost(e) {
- var sheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
- var rowData = [];
- // Get form data
- rowData.push(e.parameter.email);
- rowData.push(e.parameter.nama);
- rowData.push(e.parameter.Institusi); // Adjust the field name to match the HTML form
- rowData.push(e.parameter.deskripsi);
- // Append the data to the sheet
- sheet.appendRow(rowData);
- // Return a success message
- return ContentService.createTextOutput("Data berhasil disimpan.").setMimeType(ContentService.MimeType.TEXT);
- }
Advertisement
Add Comment
Please, Sign In to add comment