google-form

Google Form API?

孤街醉人 提交于 2019-11-28 10:40:50
I would like to (programmatically) convert a text file with questions to a Google form. I want to specify the questions and the questiontypes and their options. Example: the questiontype scale should go from 1 to 7 and should have the label 'not important' for 1 and 'very important' for 7. I was looking into the Google Spreadsheet API but did not see a solution. (The Google form API at http://code.lancepollard.com/introducing-the-google-form-api is not an answer to this question) Google released API for this: https://developers.google.com/apps-script/reference/forms/ This service allows

Google Apps Script - convert to CSV

淺唱寂寞╮ 提交于 2019-11-28 06:18:25
问题 I would like to export a Google Sheet to CSV on form submit. I have searched but the only thing similar does not separate it into different columns once I have converted it: Export spreadsheet or CSV text file from Google Drive Forms using script? It's a simple sheet with 8 columns only. Any help appreciated 回答1: Once you get the values of a spreadsheet range, you'll end up with a two dimensional array. So to convert it, you'll have to construct a string that joins array array cell elements

The id of a FormResponse when a response is submitted is different when you list all FormResponses

瘦欲@ 提交于 2019-11-28 05:15:58
问题 I'm working in a bug tracking backed by a Google Form and I think I'm stuck with a bug in Apps Script. When a response is submitted, my script onFormSubmit handler gets the FormResponse id (as in the sample below): function onFormSubmit(e) { log("ID (on submit):", e.response); } function log(msg, response) { Logger.log(msg + " " + response.getId() + "; response is '" + response.getItemResponses()[0].getResponse() + "'"); } Further, when I list all FormResponse s, I get different IDs, except

How to post to Google Docs Form directly

我怕爱的太早我们不能终老 提交于 2019-11-28 01:38:22
I'm working on a project where i need to post the data i acquire to a Google form and obtain the data from the spreadsheet. I cannot use google apps script and need a method using the direct POST method as i will be doing this function from a GSM module. All the solutions posted previously take into consideration the old structure of the Google form which provides a form key.Like the solution described in this one: http://www.open-electronics.org/how-send-data-from-arduino-to-google-docs-spreadsheet/ The link to my current form is this. https://docs.google.com/forms/d/14MkYG3fPNezzUC

Dynamic selection options in Google Apps Script for forms

怎甘沉沦 提交于 2019-11-28 00:28:21
I have this form : If you see List Items - Student Name and Grades are getting populated from a Google Sheet. What I want to do now is upon selection of List Item Grade, show only those students that belong to that particular grade in the "Select Student" selection... How can it be done, because form has only two triggers: onOpen and onEdit? As far as I know, this type of client side event does not exist in Google Forms. The scripting mechanisms of Google Apps Script are designed for creating forms and other documents, but do not reach very far for client-side functionality. What I suggest is

How to add “Edit Response” link to Google Forms emails?

半城伤御伤魂 提交于 2019-11-27 19:03:48
I have a simple Google Form that collects data, and, using AppScript, sends confirmation emails to users who fill it out. After user submits the form, on confirmation, s/he will see a link to edit his/her response. I'd like to include that link as a part of the confirmation email (Right now, it only shows up on the page.) How can I obtain the URL to edit a submitted response? I am able to get the link to the Form through SpreadsheetApp.getActiveSpreadsheet().getFormUrl() . It gives me the following format: https://docs.google.com/a/domain.com/spreadsheet/viewform?formkey=<formKey> The link

Can I fill in TextItem by Google apps script?

柔情痞子 提交于 2019-11-27 18:59:19
问题 I made a form with Google Form Builder, then I add a script for it. I can run Session.getEffectiveUser().getEmail() to the respondent's email address. but I cant fill it in the textbox to assist them. Can I do such thing with Google App Script? 回答1: I think I found a solution to your problem. But I must admit it was not evident. In apps scripts documentation you've got everything to create a prefilled url. BUT for that you need to have a ItemResponse element and I didn't found any

Embedded Google form in email?

微笑、不失礼 提交于 2019-11-27 18:50:35
问题 I'm embedded Google form in email by Google apps script but the form doesn't submit correctly from Outlook and from iPhone. It works from Google Mail client only? Is there's away to solve this problem of submission from iphone or outlook? Thanks Amany 回答1: To use forms embedded in emails, the email client needs to support html forms. Outlook has its own forms, but does not support the html form element (reference). I haven't found a reference for iPhone, but it's likely that it also limits

Specifying form for 'on form submit' trigger

亡梦爱人 提交于 2019-11-27 16:17:31
I have two google forms, which send data to two tabs in a single spreadsheet. I have set up a script with two functions. I would like the first function to run on submission of the first form. And, the second function to run on submission of the second form. Problem is: when setting up a trigger onformsubmit, it does not allow you to specify which form. Therefore, whenever completing the first form, it runs both functions. Question: how can I restrict the functions from running only when the specific form is submitted? I was just looking at some documentation and found this: Documentation

Google Form data to store in cloud SQL database

你说的曾经没有我的故事 提交于 2019-11-27 13:18:47
问题 I'm new to Google Forms and Google Apps Script. I have ten Google Forms, and on submitting forms they populate a corresponding Google Sheet. Now, here is what I want, on submitting form I want that information to also be stored in the cloud SQL database. What steps will accomplish that? 回答1: The normal data flow for a Google Form that is accepting responses and replicating them to a Spreadsheet looks like this: You've got two opportunities for a Form Submission Trigger to replicate the form