google-form

Google Forms - Instant Conditional branching

浪尽此生 提交于 2019-12-21 12:59:04
问题 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

Google-Forms response with Python?

断了今生、忘了曾经 提交于 2019-12-20 10:39:58
问题 I'm trying to write a Python-Script which makes it possible to submit responses in Google-Forms like this one: https://docs.google.com/forms/d/152CTd4VY9pRvLfeACOf6SmmtFAp1CL750Sx72Rh6HJ8/viewform But how to I actually send the POST and how can I find out, what this POST should actually contain? 回答1: First pip install requests You have to post some specific form data to a specific url,you can use requests.The form_data dict params are correspondent to options,if you don't need some options

Android java.lang.NoSuchMethodError: No virtual method

て烟熏妆下的殇ゞ 提交于 2019-12-20 07:43:18
问题 I would like to send a post request to send data to my worksheet by Google Form I use Android Studio, in my android project I have an error when I try to execute DefaultHttpClient object I get : --------- beginning of crash 10-26 16:19:08.749 21824-22874/mypackage E/AndroidRuntime﹕ FATAL EXCEPTION: Thread-1553 Process: mypackage, PID: 21824 java.lang.NoSuchMethodError: No virtual method execute(Lorg/apache/http/client/methods/HttpUriRequest;Lorg/apache/http/protocol/HttpContext;)Lorg/apache

Getting a Google Form Script generated email to pipe data into Reponse Sheet

独自空忆成欢 提交于 2019-12-20 07:23:03
问题 I am currently trying to setup an approval workflow. I'm fairly junior when it comes to some of this stuff. But so far have it working at respectable level to fit our needs with the assistance of an example. I was using the template/example from Email Approval using Google Script and a Form. The issue I am running into, with a lack of functionality is that at the time of Accept or Deny via the Email that is generated for approval I would like it to then record that data back into the Google

How do I add a login to a Google Form for users completing it

我的未来我决定 提交于 2019-12-20 07:20:28
问题 I have been reading and watching many tutorials online but I could not find something that I can initially load some kind of dialog box or login page with a single input text so then I can process that using apps script. onFormOpen() is not triggered on the user who completes the form. On my onSubmitForm() function I have the following code: function onFormSubmit(e){ var formResponses = FormApp.getActiveForm().getResponses(); var formResponse = formResponses[formResponses.length-1]; var

How can I script a Google Form from a Spreadsheet to go to a specific page based on an answer?

拟墨画扇 提交于 2019-12-20 05:16:12
问题 I have successfully created a Google form that populates from a spreadsheet using code adapted from here: https://www.youtube.com/watch?v=BYA4URuWw0s . Now I would like to make the form go to a specific question based on the answer of a previous question without losing the function of updating from the spreadsheet. I have tried to alter code from here: How to assign Go_To_Page in Form Service on Multiple Choice? , but have yet to have any luck. Below is what I have as of now. I am very new to

Form Google Script Prevent Duplicates

本小妞迷上赌 提交于 2019-12-19 05:00:47
问题 I'm making a google form and I have a field called name with other fields like title, company, and email address. If there is already a specific person in the database, I want the other information to replace the old information with the new info (i.e. an update function), but I'm having trouble doing with that with Google Apps Script since I find the documentation rather pathetic. Would anyone mind giving me a hand? 回答1: This won't prevent a Google Form from getting submitted with duplicate

How do you get URL parameters in a Google Form using Google Apps Script?

非 Y 不嫁゛ 提交于 2019-12-18 20:05:18
问题 So I've got a Google Form where I'd like to pass in a parameter from an email link like this: https://docs.google.com/URL/forms/d/LONGSTRING/viewform?id=12345 I'd like to be able to grab that id and pass it into the spreadsheet recording results. Now I've got writing to a spreadsheet down, but getting the id is problematic. I've already tried: function doGet(e) { var id = e.parameter.id; Logger.log(id); } and function doPost(e) { var id = e.parameter.id; Logger.log("do post " + id); } Both of

create an ItemResponse in Form

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-18 08:48:20
问题 I'm trying to send an automatic response from code to a form of mine. I can open it and send empty responses (I create a FormResponse and submit it empty). Now I want to fill the itemResponses prior to submit. I'm trying to use FormResponse.withItemResponse(itemResponse) https://developers.google.com/apps-script/reference/forms/form-response?hl=es-ES#withItemResponse(ItemResponse) but I can't find a way to create the ItemResponse argument to fill my FormResponse. I searched the whole

create an ItemResponse in Form

两盒软妹~` 提交于 2019-12-18 08:47:03
问题 I'm trying to send an automatic response from code to a form of mine. I can open it and send empty responses (I create a FormResponse and submit it empty). Now I want to fill the itemResponses prior to submit. I'm trying to use FormResponse.withItemResponse(itemResponse) https://developers.google.com/apps-script/reference/forms/form-response?hl=es-ES#withItemResponse(ItemResponse) but I can't find a way to create the ItemResponse argument to fill my FormResponse. I searched the whole