google-form

Using Google Apps Script to set the correct answer in a Google Forms (that has been defined as a quiz)

南楼画角 提交于 2019-12-25 07:59:57
问题 I am trying to use Google Apps Script to set the correct answer in a Google Forms (that has been defined as a quiz) The actual Google Form can be defined using code such as var form = FormApp.create('New Form'); var item = form.addCheckboxItem(); item.setTitle('What condiments would you like on your hot dog?'); item.setChoices([ item.createChoice('Ketchup'), item.createChoice('Mustard'), item.createChoice('Relish') ]); (Taken from https://developers.google.com/apps-script/reference/forms/) Is

Embedding onFormSubmit Triggers for multiple Google forms that I generate with Script

吃可爱长大的小学妹 提交于 2019-12-25 05:16:07
问题 I have a script for creating multiple Google forms. within each Google form, I want to create an onFormSubmit trigger to post the responses to a selected spreadsheet. Using installable triggers but the trigger doesn't seem to get embedded into the forms I create. The code as follows: for(i = 0; i<arrayOfArrays.length; i++) { var form = FormApp.create("Name"); form.setTitle('Blah blah'); form.addTextItem(); // my questions function writeToSpreadsheet() { var formResponses = form.getResponses()

Why Google Forms does not return user response on formSubmit?

為{幸葍}努か 提交于 2019-12-25 03:38:17
问题 I have created a sample google form, and defined a function like below: function onFormSubmit(e) { Logger.log('Inside function'); Logger.log('Emailing data row ->'); var itemResponses = e.getItemResponses(); var email = itemResponses[0].getResponse(); Logger.log(itemResponses); } In Edit-> Current project's triggers I have added the function to be called on form submit: In My Executions section I see the error below: TypeError: Cannot call method "getItemResponses" of undefined. at onSubmit

Google Forms with script transfer of ownership still runs script as previous user

橙三吉。 提交于 2019-12-25 01:13:03
问题 I made a google script in a spreadsheet that responds on form submit. It modifies the files, makes a pdf and emails that pdf to specific people. This was made for someone else and then I transferred ownership. However, the edits to those files and emails sent, still appear under my email. How do I completely transfer the folders and everything in them a different user on the same domain so that they are the ones sending emails and modifying files? 回答1: How do I completely transfer the folders

Printing/Downloading from Google Forms

跟風遠走 提交于 2019-12-24 19:07:03
问题 A little info: I am using Google Forms, with Google Docs, and Google Spreadsheet. I have a Google Form which submits responses into a Google Spreadsheet. I also have a GAS with a function written for onFormSubmit, which takes the form submission and puts all the answers into a PDF template, and then emails the resulting PDF to my email address. This is fine, however I would like to make the form also either: A) Present a download of the PDF for the person who filled out the form B)

Google Sheets web app register several options

隐身守侯 提交于 2019-12-24 18:11:35
问题 I've taken an example from a book to adapt it. the thing is that the original code has radio check (to enable only one option) and I'd like to have them as checkbocxes (to register several choices). I've made the changes in the HTML code and it looks fine but the spreadsheet still registers one of the choices instead of all of them. Could you please let me know what I'm missing? Here's the HTML of the project <!DOCTYPE html> <html> <head> <base target="_top"> </head> <body> <form method="post

Regular Expression Google Forms

♀尐吖头ヾ 提交于 2019-12-24 16:34:07
问题 I have a scripp in a google spreadsheets which submits new forms and makes some calculations. Some people fill the number fields with things like ".00" instead of ",00". I have field validation in the form to only take whole numbers, but doesn't prevent this from happening. So 120.00 its not interpreted as 120 by google spreadsheets, it even cant parse it as a number. I tried many workarounds with spreadsheets formulas with no luck but reading a bit i found the best way is to use a regular

Regular Expression Google Forms

泪湿孤枕 提交于 2019-12-24 16:33:16
问题 I have a scripp in a google spreadsheets which submits new forms and makes some calculations. Some people fill the number fields with things like ".00" instead of ",00". I have field validation in the form to only take whole numbers, but doesn't prevent this from happening. So 120.00 its not interpreted as 120 by google spreadsheets, it even cant parse it as a number. I tried many workarounds with spreadsheets formulas with no luck but reading a bit i found the best way is to use a regular

Script to update Google Form from Spreadsheet

痴心易碎 提交于 2019-12-24 15:39:29
问题 Here's my problem: I can't seem to piece this info together nor find it anywhere even though it seems simple enough. When I find help, they just tell me to enter it manually (but my users can't be trusted) or make a new form (not an option). What I need is to be able to keep: the same google form it's ID and link to the same spreadsheet the same 20 "paragraph text" questions (titles remain the same). There can't be any new questions or anything that would change the name or layout of the

Google spreadsheet on team drive not running script

有些话、适合烂在心里 提交于 2019-12-24 13:38:20
问题 I have a google form on my Team Drive that when submitted pulls that data to a spreadsheet. I used a script within that spreadsheet that pulls the unique URL to that specific submitted form. My team members are able to submit the form and access the spreadsheet for editing, however the script only runs for me. All of my team members have full access to the drive. I have scoured as far as I know how to resolve this issue but have only come to potential answers. One of those answers was to