google-form

Modify existing form Values - GetChoices() not working

爷,独闯天下 提交于 2020-02-24 16:16:47
问题 Why does '.getChoices()' not work for existing list items? I have the following code which gets an item in a form by it's ID, and I intend to update the values of the form item. However, when using the .getChoices() method, it fails with the error ' TypeError: Cannot find function getChoices in object Item. ' The item I'm fetching is a list item as required, and when a list item is created then fetched, it works normally as in the sample code listed here. My code is as follows: function

Trigger different Google Script functions after different form submissions

时间秒杀一切 提交于 2020-02-07 10:13:11
问题 I currently have five different forms connected to the same Google Sheet. My end goal is that after someone submits a response to any of the forms, they will receive an email with their responses. I know that Google Forms has that ability through response receipts, but it's not optional. If I have that feature on, they cannot submit the form without filling in their email (even if they don't want the receipt). The code I have at the moment is: function ActivityFunction() { var spreadsheet =

How to reset/reload/restart a Google Form

倾然丶 夕夏残阳落幕 提交于 2020-02-06 18:49:25
问题 I would like to display a feedback google form in kiosk mode on a tablet. After form completion, it should show a "thank you" message and restart the form for the next visitor. I noticed a "Show link to submit another response" in the form settings menu, but no way to accomplish a auto refresh. Fortunately there is the google's script manager. As the script runs in a sandboxed iframe, I cant even access the window object. I know that I can access the FormApp.getActiveForm() method, but there

How to reset/reload/restart a Google Form

送分小仙女□ 提交于 2020-02-06 18:48:53
问题 I would like to display a feedback google form in kiosk mode on a tablet. After form completion, it should show a "thank you" message and restart the form for the next visitor. I noticed a "Show link to submit another response" in the form settings menu, but no way to accomplish a auto refresh. Fortunately there is the google's script manager. As the script runs in a sandboxed iframe, I cant even access the window object. I know that I can access the FormApp.getActiveForm() method, but there

How to get entry of a google form

|▌冷眼眸甩不掉的悲伤 提交于 2020-02-06 07:58:52
问题 I am trying to create a bot that will auto-fill a form I am writing in c# and I have used the following Github code to do so. My problem is, that in order to fill a field in the form I need something that is called entery . But I don't know what it is, or how can I get it. I have access to the form, I have tried to inspect a field in the form in order to get the ID, but I can't find it. what is an entry, and how can I find it? example: submissionService.SetCheckboxValues("entry.55555" /*what

How to get entry of a google form

穿精又带淫゛_ 提交于 2020-02-06 07:58:29
问题 I am trying to create a bot that will auto-fill a form I am writing in c# and I have used the following Github code to do so. My problem is, that in order to fill a field in the form I need something that is called entery . But I don't know what it is, or how can I get it. I have access to the form, I have tried to inspect a field in the form in order to get the ID, but I can't find it. what is an entry, and how can I find it? example: submissionService.SetCheckboxValues("entry.55555" /*what

Auto Populate Multiple Choice in google forms from a list on google sheet

守給你的承諾、 提交于 2020-02-06 07:52:47
问题 So I have a google sheet with a list of names and I want a multiple choice box on a google form to populate with this list. I have already created a script to create a dropdown menu based on this list but can't get the multiple choice to work. Here is the script that creates the dropdown menu. function updateForm(){ // call your form and connect to the drop-down item var form = FormApp.openById("Form ID"); var namesList = form.getItemById("Data-Item-ID").asListItem (); // identify the sheet

Auto Populate Multiple Choice in google forms from a list on google sheet

。_饼干妹妹 提交于 2020-02-06 07:52:41
问题 So I have a google sheet with a list of names and I want a multiple choice box on a google form to populate with this list. I have already created a script to create a dropdown menu based on this list but can't get the multiple choice to work. Here is the script that creates the dropdown menu. function updateForm(){ // call your form and connect to the drop-down item var form = FormApp.openById("Form ID"); var namesList = form.getItemById("Data-Item-ID").asListItem (); // identify the sheet

Google forms: Assign questions to Page Break and go to page

雨燕双飞 提交于 2020-01-25 18:45:15
问题 With regard to this post, when more questions are added, to the same or different page, only the last question is correctly displayed. The other questions just show the structure (e.g. multiple choices, lists). The following code shows the problem: function createForm() { var title = 'Multipage Form Test'; var description = 'Stackoverflow question 17083500'; var form = FormApp.create('Questionnaire') .setDescription('Questionnaire') .setConfirmationMessage('Thanks for responding!'); var page1

Google forms: Assign questions to Page Break and go to page

你说的曾经没有我的故事 提交于 2020-01-25 18:44:30
问题 With regard to this post, when more questions are added, to the same or different page, only the last question is correctly displayed. The other questions just show the structure (e.g. multiple choices, lists). The following code shows the problem: function createForm() { var title = 'Multipage Form Test'; var description = 'Stackoverflow question 17083500'; var form = FormApp.create('Questionnaire') .setDescription('Questionnaire') .setConfirmationMessage('Thanks for responding!'); var page1