google-forms

Google Form: How to save multiple file upload in a specific folder?

夙愿已清 提交于 2020-08-03 05:48:05
问题 I have created a custom form on Google Form which contains an Upload File Question (allowing multiple files). I'm trying to run a script when submitting the form that creates a folder into a specific destination in Drive and that it saves the files uploaded in this one. But I have no idea how to retrieve the ID of the files uploaded and move them into the new folder. Thank you I managed to create the new folder, but I'm not able to select the uploaded file and save them (or move them) to the

Add-on menu doesn't get created when published through G-Suite Marketplace SDK, but does through Chrome Web Store

独自空忆成欢 提交于 2020-07-31 05:01:08
问题 Whether by using createAddonMenu() or createMenu(), I can't create menu when add-on is installed through GSM, or when opened with "Integrate With Google" via G-Suite Marketplace SDK. "Test as add-on" via Script Editor works, installation via Chrome Web Store works, and I have no idea what might be wrong. I'm not sure if the script runs in the first place. I've tried existing solutions from StackOverflow such as calling functions in different order, but nothing seems to work. Does someone know

Insert image in multiplechoiceitem in Google Forms with Google Apps Script

血红的双手。 提交于 2020-07-31 04:08:06
问题 I need to insert a Google Drive image in each choice of the multiple choice item. Upon checking the documentation, the Class .addMultipleChoiceItem() doesn't support the method .setImage() . Is there another way to insert an image from Google Drive?. Example: var form = FormApp.openById('1234567890abcdefghijklmnopqrstuvwxyz'); var item = form.addListItem(); item.setTitle('Do you prefer cats or dogs?') .setChoices([ item.createChoice('Cats'), <------ I need to insert an imagen of a cat in this

Copying item .getFeedbackForCorrect between Google quiz forms

主宰稳场 提交于 2020-07-30 07:02:53
问题 The .duplicate() method does not work between forms (well not as far as I can see) so I have written a quick routine to copy multiple-choice items from one form to another. (I'm doing this to set quizzes in Classroom . I have banks of questions on single topics in quizzes for formative assessment and want to combine random questions from these for summative assessment.) The code I've written works fine in copying over the questions but not the feedback. This is my first GAS code so apologies!

How to restrict google forms submission based on two ID using GAS on Google Form or Google Sheets

拥有回忆 提交于 2020-07-30 04:03:28
问题 I'm working on a query Google Form which collects participants' votes to a certain question. I want to restrict participants based on the ID number. I was thinking of three approaches: Prevent form submission if the entered ID is not on the given list. (I prefer this approach but couldn't find any useful code for it so far) Delete rows in the linked responses spreadsheet after form submission using GAS on Google Form through onFormSubmit trigger. Here is my code which is not working: function