google-form

pre-fill google form from google apps script

怎甘沉沦 提交于 2020-07-19 18:15:00
问题 I have a student registration form, there's student id which is a required field. I have a google apps script function which tells if this student is registered for any class or not. Is there a way to auto-fill the field course registered via calling the google apps script function yes or no. 回答1: Yes you can create a pre filled response with the forms ID, not that the pre filled fields are showed in the URL Function formPrefill(formId){ var form = FormApp.openById(formId); try{ var items =

pre-fill google form from google apps script

谁都会走 提交于 2020-07-19 18:13:33
问题 I have a student registration form, there's student id which is a required field. I have a google apps script function which tells if this student is registered for any class or not. Is there a way to auto-fill the field course registered via calling the google apps script function yes or no. 回答1: Yes you can create a pre filled response with the forms ID, not that the pre filled fields are showed in the URL Function formPrefill(formId){ var form = FormApp.openById(formId); try{ var items =

Populate a Google Form responses from a Google Spreadsheet

|▌冷眼眸甩不掉的悲伤 提交于 2020-07-17 08:57:08
问题 I am trying (and not succeeding at the moment) to populate a Google Form from a Google Spreadsheet using the items that I have picked up from this website and this extremely useful answer provided by Mogsdad here. Ideally, I'm looking for: The Logger.log (URL) logs URL's for all the data stored in the spreadsheet, is it possible to just log the last entry and use this to generate the URL? Is it then possible for the pre-filled URL to auto submit once populated with the data? I have found this

onFormSubmit Trigger occurs twice randomly about every few weeks

余生颓废 提交于 2020-07-03 13:33:12
问题 Firstly, I want to say that this issue is different from all previous Form Submit Trigger errors with Google Apps script. This one triggers twice, while still having access to all form submit info of the previous form submission and triggers the program again. Furthermore, the additional form submit trigger glitch does not add a row to the spreadsheet form responses, this is because the user isn't submitting the form twice, it's on Google for triggering it. This has happened randomly about 3

How to check if current form submission is editing response

此生再无相见时 提交于 2020-06-29 05:06:15
问题 I need to return the row number of a Google Form submission that has been resubmited. I followed all of the information at: Google Forms App Script : How to check if current submission is editing response or a new response, but I get this error for trigger formSubmit: Exception: Cannot convert '15.0' to int. So it is correctly finding the 15th row as edited and appears to be giving me a number, but i keep getting the error when i try to use that number. I've tried to convert it using +num ,

Auto-Fill or automate a Google Form

两盒软妹~` 提交于 2020-06-29 04:03:17
问题 With the recent study-from-home dynamics hastly implemented by budget schools, I am now facing a mindless-robot-like-task of filling in attendance for my kids everyday multiple times per child. The school shared this form: I, being a developer, want to create a UI and have my kids submit thier attendance to this form on thier own when the teacher asks for one over Zoom. Ids it possible? I'm a .Net developer and have not developed anything for Office 365 Online and have no idea where to start

Dynamic dependent dropdowns on Google Form

一个人想着一个人 提交于 2020-06-28 09:05:33
问题 I need to add the following functionality on a google form - I need to have two dropdowns on the form- Dropdown1 values are being populated from the google sheet using a script. Dropdown2 values must also be populated from the google sheet BUT must change based on the value selected in Dropdown1 on the form. Since Dropdown1 has many values in the list, using the "go to section based on answer" is not an option to show Dropdown2. How can I implement this cascading/dependent dropdown

Dynamic dependent dropdowns on Google Form

江枫思渺然 提交于 2020-06-28 09:05:01
问题 I need to add the following functionality on a google form - I need to have two dropdowns on the form- Dropdown1 values are being populated from the google sheet using a script. Dropdown2 values must also be populated from the google sheet BUT must change based on the value selected in Dropdown1 on the form. Since Dropdown1 has many values in the list, using the "go to section based on answer" is not an option to show Dropdown2. How can I implement this cascading/dependent dropdown

Is it possible to export questions and multiple choice options from a Google Form to a Google Sheet?

只愿长相守 提交于 2020-06-28 05:43:08
问题 We have a series of Google Forms that contain multiple choice questions, each with 4 possible answers. I would like to be able to export the question and all possible answers to a Google Sheet for all of the questions and answers in that Google Form. For example: Q1: What is the capital of England? A: London B: Paris C: Madrid D: Helsinki I've tried a variety of add-ons. There are loads that allow Google Sheets > Google Form, but nothing in reverse (that I can find), so I assume it will be a

Cannot call FormApp.getUi() from bound Google Forms script

余生颓废 提交于 2020-06-25 21:50:10
问题 As the title says, I'm trying to get the UI of a Google Form from a script , so that I can show an alert box to the user with some information. This is the relevant part of the function: function Foobar(){ ... var ui = FormApp.getUi(); ui.alert("Foo", "bar", ui.ButtonSet.OK); } This code executes on the "On form submit" event trigger. Invariably, a few seconds later I get an email containing this error: Cannot call FormApp.getUi() from this context. Now, from my understanding, bound scripts