google-form

Google-Forms response with Python?

断了今生、忘了曾经 提交于 2019-12-03 03:05:48
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? 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,just remove it from form_data. import requests url = 'https://docs.google.com/forms/d

Dynamically update Google Form 'Choose from list' options from column in Spreadsheet

时光怂恿深爱的人放手 提交于 2019-12-03 00:42:12
I am trying to setup a Google Form that will create a ' choose from list ' question, with each option being drawn from the rows in a specific column. I have tried this code , but it has not worked for me at all. The code that I have so far is below. I am able to create the desired form question with the data from only one row in the specific column (in this case the last row of the column). If anyone can help by pointing me the right direction as to how to assign each selected row to only one questions option. Also if these is some kind of way to dynamically update the question options every

Import google spreadsheet data into google forms with app script

China☆狼群 提交于 2019-12-02 21:05:24
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. 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. In your spreadsheet select Tools > Script Editor and adapt this to your needs: /** After any change in the sheet, update the combobox options

How to add value on another section in google form in Unity3d

为君一笑 提交于 2019-12-02 17:30:37
问题 How can I add value on the other section on Google forms in unity3d? I can only add values on section 1. I am having trouble on adding values on other sections. here is the code public GameObject username; public GameObject email; public GameObject phone; public GameObject phone2; private string Name; private string Email; private string Phone; private string Phone2; [SerializeField] private string BASE_URL = "https://docs.google.com/forms/d/e

Record Time taken to complete a google form

若如初见. 提交于 2019-12-02 17:23:12
问题 I am trying to record the total time taken to complete and submit a Google form. My logic is simple that the following code would record and put the timestamp as a multiple choice option. Then upon submitting the form, we get a time stamp anyway but along with that, we would get the initially recorded timestamp as an answer to that question. This is my cute little code: function initial() { var form = FormApp.getActiveForm(); form.getItemById(1589920082).asMultipleChoiceItem().setChoiceValues

Android java.lang.NoSuchMethodError: No virtual method

不羁岁月 提交于 2019-12-02 13:19:19
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/http/client/methods/CloseableHttpResponse; in class Lorg/apache/http/impl/client/DefaultHttpClient; or

Record Time taken to complete a google form

你离开我真会死。 提交于 2019-12-02 13:16:13
I am trying to record the total time taken to complete and submit a Google form. My logic is simple that the following code would record and put the timestamp as a multiple choice option. Then upon submitting the form, we get a time stamp anyway but along with that, we would get the initially recorded timestamp as an answer to that question. This is my cute little code: function initial() { var form = FormApp.getActiveForm(); form.getItemById(1589920082).asMultipleChoiceItem().setChoiceValues([new Date()]); } I have set the trigger as OnOpen but surprisingly, it does not renew the timestamp

Sequentially Rename 100+ Columns Having Idiosyncratic Names

☆樱花仙子☆ 提交于 2019-12-02 12:45:56
I have a large data frame imported from a Google Forms survey with very long column names (basically, the column names are the survey questions themselves). So, my imported data frame is like this: d<- data.frame(LongnameLongnameLongnameLongname=1:3,AnotherOneAnotherOneAnotherone=4:6, Etc_Etc_Etc_Etc_Etc=3:5) d GOAL: To replace these long, idiosyncratic column names with a sequential name, such as Q1, Q2, etc. Use the colnames function: colnames(d) <- paste0("Q",1:ncol(d)) 来源: https://stackoverflow.com/questions/41510225/sequentially-rename-100-columns-having-idiosyncratic-names

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

故事扮演 提交于 2019-12-02 11:10:35
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 itemResponses = formResponse.getItemResponses(); for (var j = 0; j < itemResponses.length; j++) { var

Any way to validate a Google form input?

╄→гoц情女王★ 提交于 2019-12-02 10:47:40
I want to collect and validate a value (PIN) in a Google Form. The Form has 2 pages, and I'd like the validation to affect form navigation: If PIN matched with a value in Column N of the response sheet, continue to page 2 of the form If PIN not matched, Do not continue. Can this be done with Google Apps Script? You are not able to create this type of dynamic form using the Google Forms Service, because there is no interaction between the service and scripts during form entry, except upon Form Submission. In the case of a multi-page form, a script has no way to know that a user has completed