google-form

Replace empty field with string on Google forms

谁说胖子不能爱 提交于 2019-12-09 01:43:58
问题 This code works great! Once the form is submitted, it auto-populates a template I have created, then send it to my email. This works great unless the user leaves empty fields on the form. If that's the case, the order of the auto-populate is wrong... Is there anyway to automatically include a text (for example "not specified") if the user decides to leave a field blank? If the user enters a text, great! if not, then I would want it to show "not specified". Please help! // Requisition Form //

I need to capture the IP Address to google spreadsheet via google web form

喜你入骨 提交于 2019-12-08 19:38:12
问题 I have designed a Google web form. This form is sent to number of clients. All the fields that are submitted are recorded to Google spreadsheet. I need to capture the IP Addresses of clients and time-stamp to spreadsheet when client updates his information. How can I make the client to include its own IP address to store it in spreadsheet? 回答1: To make the clients to include their own IP address in a Google Form you should ask them to write the IP address themselves. The alternative is to pre

Http POST to a google form

拜拜、爱过 提交于 2019-12-08 16:45:31
问题 I need to do an Http POST to my google form, and following an advice (http://productforums.google.com/forum/#!topic/docs/iCfNwOliYKY) I created a URL syntax like this: https://docs.google.com/forms/d/MY_FORM_ID&entry.2087820476=hello&entry.261928712=dear&submit=Submit Eventually I'll do the POST from iOS and Android, but I'm testing it simply in the browser and it doesn't work. I get back a Google Drive response that says "Sorry, the file you have requested does not exist." and the entry

How do you POST data to a multi-page google form?

三世轮回 提交于 2019-12-08 12:49:26
I'm trying to auto-fill a google form via POST. However when I actually POST the data to it, only the first pages questions actually get filled. Example Code: private static void PostToFormTest() { WebClient client = new WebClient(); var keyValue = new NameValueCollection(); keyValue.Add("entry.843521592", "Option 1"); keyValue.Add("entry.901429584", "Test Right Now"); keyValue.Add("entry.347619935", "Test Page 2"); Uri uri = new Uri("https://docs.google.com/forms/d/1zuQxyoRUQ-jYwTf7wrPu9Wqln8ec7gfhzRbOILD3LGU/formResponse"); byte[] response = client.UploadValues(uri, "POST", keyValue); string

Send email if certain value is written in Google Forms

牧云@^-^@ 提交于 2019-12-08 11:37:00
问题 I am working with Gforms and I need to send an email to "A Friend" When the last form submitted has in the "J" Column a certain value, in this case: "Roberto". This is my script. But it seems not to be working, I get no email when that value is submitted in a form. I did setup the trigger to run the script when a form is submitted. function myNotification() { var ss = SpreadsheetApp.getActiveSpreadsheet(); var ranchE = e.range.getRow(); var Kjota = "J"; var rangex = Kjota + ranchE; var value

Allowing for third party updates to Google Spreadsheets via email response?

倖福魔咒の 提交于 2019-12-08 11:33:49
问题 I'm fairly new to Google Scripts, so bear with me. I've built a user interface in Google Script that takes user inputs for requested days off, stores the info in the spreadsheet and sends an email to the supervisor. Currently, I am building the message as a series of strings, and emailing to the supervisors. No problem. I've been asked to allow for the supervisors to respond to the request (ie links or buttons that approve or deny the request). The response is supposed to be saved in the same

google sheets launch form from script

我怕爱的太早我们不能终老 提交于 2019-12-08 11:17:09
问题 I'm trying to launch a form from a script from my script following the code I borrowed from here: Single Google Form for multiple Sheets which I did as follows: function CreateForm() { var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('Is this working now?'); item.setChoices([ item.createChoice('yes'), item.createChoice('no') ]); form.addMultipleChoiceItem() .setTitle('What should I do about it?') .setChoiceValues(['Complain', 'Rejoice', 'Keep Trying'])

Passing custom Spreadsheets column to onFormSubmit trigger

烈酒焚心 提交于 2019-12-08 09:12:12
问题 I have a Google Form with two numbers field, so in the Answer destination spreadsheets I have three columns: SUBMIT-DATE, NUM1, NUM2 I add a fourth column TOT, not field in the form, with this formula: ARRAYFORMULA(B2:B+C2:C) So in the fourth column i have a SUM for every row I bound this script to spreadsheet: function onFormSubmit(e){ var subject = "TRY GAS"; var body = e.namedValues['NUM1']+ "+" +e.namedValues['NUM2']+ "=" +e.namedValues[TOT]; MailApp.sendEmail("admin@example.com", subject

How do you POST data to a multi-page google form?

烂漫一生 提交于 2019-12-08 08:30:44
问题 I'm trying to auto-fill a google form via POST. However when I actually POST the data to it, only the first pages questions actually get filled. Example Code: private static void PostToFormTest() { WebClient client = new WebClient(); var keyValue = new NameValueCollection(); keyValue.Add("entry.843521592", "Option 1"); keyValue.Add("entry.901429584", "Test Right Now"); keyValue.Add("entry.347619935", "Test Page 2"); Uri uri = new Uri("https://docs.google.com/forms/d/1zuQxyoRUQ

google script forms ListItem: how to set pageBreakItems for each choice?

偶尔善良 提交于 2019-12-08 05:13:29
问题 I have a question about how to set a list of choices in a Google Forms ListItem which specifies not only the the choice value but also the goToPage() pageBreak destination according to the chosen value. I am sorry for the length of the question: I prefer to give some background to make the issue clear. Thank you so much in advance! The context is that of a greenhouse in which different actions have to be performed for each plant at different stages of the plant growth, such as sowing,