Paste Google Docs Response Form

I want to embed a form in an email that works both in a web browser and in a gmail application using google docs. I was able to implement it and use it in different browsers with the following code, but I can not use it in the application. The problem is that I want the user to respond by checking Yes or No and clicking the Accept button.

could you help me? thanks in advance

 form.setRequireLogin(false);
   var url = form.getPublishedUrl();
   var response = UrlFetchApp.fetch(url);
   var htmlBody = HtmlService.createHtmlOutput(response).getContent();
   MailApp.sendEmail(responsableDirecto,
                "Course request",
                "",
                {
                  name: 'Course request confirmation'+""+program+""+name,
                  htmlBody: htmlBody,
                  attachments: [documetoDatos],
                });
+4
source share

Source: https://habr.com/ru/post/1619459/


All Articles