google-form

Send Form with MailApp after fetching html. Embed Google Form into email. Generated email contains only text

五迷三道 提交于 2019-12-04 07:53:49
I want to embed a Google form in an email and send it with MailApp. I'm attempting to use code found at: https://stackoverflow.com/a/23671529/4305236 : var form = FormApp.create('New Form'); .... var url = form.getPublishedUrl(); var response = UrlFetchApp.fetch(url); var htmlBody = HtmlService.createHtmlOutput(response).getContent(); MailApp.sendEmail({ to: email, subject: subject, htmlBody: htmlBody, }); ... The logs show all the html for the form. However, when I run the code, the email just looks like text, with the links at bottom. When I "show original" in the email, though, all that

Copying a spreadsheet copies all linked files as well

故事扮演 提交于 2019-12-04 06:00:46
问题 I want to be able to only copy the spreadsheet and all it's sheets along with all defined sheet names, when I utilize the library method: spreadSheet.copy(newSSName); Or, myFile.makeCopy(newNameOfFile); Currently these methods copy all linked forms and scripts used in the forms. This is an unnecessary side effect for what I need and will result in a large mess in the Drive folder. Is there a way to do this quickly and efficiently without copying cell by cell, sheet by sheet? Or is that the

Google Forms - Instant Conditional branching

青春壹個敷衍的年華 提交于 2019-12-04 05:56:10
I am writing a survey on Google Forms (part of Google Docs), and I notice there are some scripting capabilities built in. I wanted to know if it were possible to show and hide questions immediately, based on a choice from a bullet-point list, but without using the page-break method you are meant to use for conditional branching. We have planned to have lots of fiddly choices, which would take up an excessive number of pages. By hiding and showing various <div></div> , I am hoping that you can make the form update instantly. For example, you might reach the form and be presented with: Which is

Creating a google form from a google spreadsheet

爱⌒轻易说出口 提交于 2019-12-04 05:19:59
问题 I have created a google spreadsheet to automatically convert into a google form, so i don't have to manually enter all the questions into the google form. I am writing google app script and managed to get all the questions.I am trying to divide the form in to sections depending on the first column of the sheet. So if the first column is "1" questions corresponding to it should be on the first section and if it is "2" it should create another section.And so on. How can i do that? what will be

Retrieve the e-mail address of a Google Form respondent without asking for their e-mail address in the form

流过昼夜 提交于 2019-12-04 02:04:29
The scenario goes: Via email, a Google Form is sent to a respondent. Via this sent email, the respondent answers the form and sends their response. This form has no email address field. I need to retrieve the respondents e-mail address and add it to the spreadsheet where the Google Form responses are recorded. Via Google Apps script, is it possible to retrieve the respondent's e-mail address in this manner? For specific reasons , I am not allowed to inquire the respondent's e-mail address. Retrieving the e-mail address in this manner also serves as verification so that it is verifiable which

How to redirect a Google Form (new version) to a custom URL after clicking Submit

China☆狼群 提交于 2019-12-03 13:21:19
问题 The new version of Google Forms is nice BUT it's missing 1 critical feature which should be easy, but I don't know how to implement it. When creating a Google Form, once the visitor clicks 'Submit', I want to redirect them to a custom URL or custom Thank you page (i.e., http://cnn.com ). The current functionality of all Google Forms is to show a message that the form has been submitted. I'd like to bypass that and instead send to a Custom URL. How can I do that? NOTE: I am NOT asking about

How to extract response items from a Google Form

拜拜、爱过 提交于 2019-12-03 13:17:10
I have made a form to capture 2 data. Email address. Group which user wants to subscribe to. Each group has their own spreadsheet. [According to the posted code, each has their own sheet within the same spreadsheet .] When a user submits the form, the form should capture the email address, and sends the data to the respective spreadsheet which the user subscribed to. This is what I've done so far. I'm stuck.. Is there a way to retrieve data specifically from a particular textbox/options ..etc? The only way I know is to loop all the data and retrieve it 1 by 1.. and that makes it difficult for

Import google spreadsheet data into google forms with app script

ⅰ亾dé卋堺 提交于 2019-12-03 07:40:16
问题 I searched the internet and I can't find a response to this nor the documentation for it. I need to dynamically generate Google forms questions with data from a Google spreadsheet using app script, but I don't know how to reference and read a spreadsheet. 回答1: It's pretty straightforward, see here: https://developers.google.com/apps-script/guides/sheets#reading You just need to open the sheet by its doc key, select the data and read the cells as a JS object. 回答2: In your spreadsheet select

Is there a way to edit css of new google forms?

末鹿安然 提交于 2019-12-03 07:30:07
Before I used to be able to just copy the source code of the form and paste the part between <form></form> into the page and add my own styling. But this doesn't seem to work anymore. Has anyone found a way to still be able to customize google forms? Yes, you can easily make the <form> work by following these steps. Create a Google Form. Get the link and open the form in a new tab. Create a barebone form having same items as the Google form. Inspect Google form for action attribute. a. Copy the same action to your form. Inspect and find values for attributes name in the Google form. a. Give

How to redirect a Google Form (new version) to a custom URL after clicking Submit

淺唱寂寞╮ 提交于 2019-12-03 04:28:28
The new version of Google Forms is nice BUT it's missing 1 critical feature which should be easy, but I don't know how to implement it. When creating a Google Form, once the visitor clicks 'Submit', I want to redirect them to a custom URL or custom Thank you page (i.e., http://cnn.com ). The current functionality of all Google Forms is to show a message that the form has been submitted. I'd like to bypass that and instead send to a Custom URL. How can I do that? NOTE: I am NOT asking about how to display custom message after submitting a Google Form as that is clearly possible in the form