google-form

Is it possible to send a google form with a trigger from a spreadsheet value?

[亡魂溺海] 提交于 2019-12-06 14:54:33
问题 Is it possible to send a google form with a trigger from a spreadsheet value? if so where would I go for help? I Have created a google form that can be viewed here http://www.leadersoftomorrowisn.org/Become_a_Member.html I want to be able to take the responses from question 5 "What Are You interested in?" and use them to send out specific google forms. Is it possible to send a google form with a trigger from a spreadsheet value? if so where would I go for help with that? Best, Maxwell 回答1:

Prefill a Google Form using data from the last response

扶醉桌前 提交于 2019-12-06 14:46:06
问题 I am building a Google Form that I am the only one to use. I use the form 2 times a day (more or less) and I would like some of the fields to be prefilled with the value of the last response I gave, because their values are not suppose to change often. I save my responses in a google spreadsheet so I could get them from there but I am very new to Google Apps Scripts and I haven't seen an event that triggers when someone opens a form to answer it yet. I'm not even sure such an event exists...

How to add validation to existing google form items via script?

怎甘沉沦 提交于 2019-12-06 14:42:22
问题 I am trying to add validation, specifically text validation, for my google form text items. However, it looks to me like the 'setValidation()' function only works with items with known type like TextItem . To my understanding, if I pull a form item via 'getItemById()' , I would get a generic item. It still has 'TEXT' type but google script just doesn't see it as a TextItem and therefore the 'setValidation() ' function is not available for it. I have tried doing thing like .asTextItem() with

Appending initial timestamp from Google Form to end of record in order to permanently store create date onFormSubmit

穿精又带淫゛_ 提交于 2019-12-06 12:39:55
问题 I need to be able to store (by appending to the record) the create date of google form responses where the initial timestamp does not get overwritten when the form is edited. This form is Hosted on Google and is within a Google Apps for Business environment. This information exists but at some point but gets dumped on form update. It seems like this would have a wide application to people using Google Forms that are edited after their creation for analytical purposes. This Google Docs Forum

Issue with setting form response destination (possibly an issue with getID() function)

喜夏-厌秋 提交于 2019-12-06 12:38:54
NOTE: This issue has been brought to the attention of google dev's and they are apparently looking into solving this. There is no solution yet, please see here if this issue affects you too! I have been working with a small project for a while in google script, I ran my script and received the "Failed to set response destination. Verify the destination ID and try again." error. This occured in a section of my code where various forms are generated each with a corresponding response spreadsheet, the error triggers on the first .setDestination() call: responseSheet = SpreadsheetApp.create(

Google Form on Submit, Send Email Lock Doesn't Work

怎甘沉沦 提交于 2019-12-06 12:29:45
I have created a google form with an email field. Responses are stored in a spreadsheet. On submit I take the last row from the sheet (latest response) and send an email to that user. I have tried to implement a lock system, however it does not work the way I would like it too. If a there are multiple submissions in quick succession (i.e 3 within a minute) only the last user will get an email sent to them, they will in fact get 3 duplicate emails the number submitted in quick succession. function EmailFormConfirmation() { // Get a public lock on this script, because we're about to modify a

Custom multi-step Google forms

不羁岁月 提交于 2019-12-06 12:24:43
问题 I've done a couple of custom Google forms, where you plunk the <form>...</form> into your own file. They submit just fine. I cant figure out how to apply this to a multi-step or multi-page form. The only solution I can think of is to build it as a giant single form, and .show() and .hide() the necessary bits to make it appear as a multi-step. This is obviously far from ideal. Does anyone have a real solution to this? Here's the expanded explanation of the <form>...</form> that I mentioned

Google app script triggering twice after Google form submit

落爺英雄遲暮 提交于 2019-12-06 11:24:49
问题 I'm having issue with my script running twice in a Google Form and the linked Sheets. I have one form submit trigger. If I delete this trigger, the script doesn't run at all on a form submit. If I add the trigger back in, it will trigger twice -- but there is only one form submittal in the sheet responses. I thought that maybe I was clicking the form submittal twice, but that doesn't seem to be it. Thanks. Here is the code: function myFunction(e) { // Set values for event "e" from Response

Copying Google Spreadsheet no longer copies linked Form

人盡茶涼 提交于 2019-12-06 10:01:13
In google app script, making a copy of a spreadsheet that contains a linked Form used to also copy the linked Form when you copied between two different Google free consumer accounts. That appears to no longer be the case. In the example below, getFormUrl returns null. What is a work-around to copy the linked Form along with the Spreadsheet like it used to? // from a 2nd google consumer account, get file by ID of a master // spreadsheet in a different user account that contains a linked Form var masterSpreadsheetFile = DriveApp.getFileById('1Jeh4b0BrF4qjogErZpd-bnnoVhLdRj2-hfwXy.....'); //

Release grade immediately after submission - how to do using Apps Script

时光怂恿深爱的人放手 提交于 2019-12-06 09:18:25
I am using the following lines of Apps Script to dynamically generate a Google Forms Quiz form.setIsQuiz(true); form.setTitle("New") .setDescription('Test') .setConfirmationMessage('Thanks for responding!') .setAllowResponseEdits(false) .setAcceptingResponses(true) .setLimitOneResponsePerUser(true) .setShuffleQuestions(true) .setProgressBar(true) .setCollectEmail(true) This is creating a form and i am able to send out the quizzes to multiple people. But i also want to "Release Score >> Immediately After Submission". This is a feature in Google Quiz Form. But i am unable to find a method