Guest User

Untitled

a guest
Apr 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. function doGet(){
  2. var template = HtmlService.createTemplateFromFile('index');
  3. template.action = ScriptApp.getService().getUrl();
  4. return template.evaluate();
  5. }
  6.  
  7. function doPost(e) {
  8. //all logic
  9. return ContentService.createTextOutput("Thank you");
  10. }
  11.  
  12. function doPost(e) {
  13. //all logic
  14. return ContentService.createTextOutput(JSON.stringify(e.parameter));
  15. }
  16.  
  17. function doPost(e) {
  18. //all logic
  19. var htmlBody = "<h1>Thank you.</h1>";
  20. return HtmlService.createHtmlOutput(htmlBody);
  21. }
  22.  
  23. function doPost(e) {
  24. //all logic
  25. var template = HtmlService.createTemplateFromFile('Thanks');
  26. return template.evaluate();
  27. }
Add Comment
Please, Sign In to add comment