google-form

Remove Google Form Submitted File

微笑、不失礼 提交于 2019-12-11 07:26:48
问题 WORKING CODE HERE: https://jsfiddle.net/nateomardavis/e0317gb6/ ORIGINAL QUESTION BELOW How do I remove a form-submitted file from Drive itself? I'm having trouble sorting out why a google form is submitting files to both my drive (not in a folder) but also into an auto-generated submission folder. I've been able to move the renamed file to a new folder and delete the copy in the auto-generated submission folder. I cannot figure out how to remove the copy that's just listed in "Drive", not in

Send email when Google Form submission is updated

拥有回忆 提交于 2019-12-11 06:39:38
问题 I have read plenty of posts about notifying someone via email when a form has been submitted and including the form data in the email but what I would like to do is identify an update to already existing information and have that put in an email and sent. I imagine that this would be done by identifying the latest timestamp and grabbing the corresponding entry. However, my extremely limited programming skills mean that I have been unable to work out the answer. 回答1: It just happens I have

References changing in Google Sheets with new forms submissions

风流意气都作罢 提交于 2019-12-11 06:07:41
问题 I have a Google sheet that feeds from a Google form and then I use the sheet to make views to show data and graphics on Google sites. I noticed that suddenly the graphics said 'No Data', and when I checked, it seemed that for some reason the ranges that feed such tables had changed their referenced cells to the newest row from the submitted forms instead of retaining the range even if it was fixed. I have no idea why or how this happened, but it happened in different places and different

Possible to pre-assign user to google form?

╄→гoц情女王★ 提交于 2019-12-11 05:58:09
问题 I am creating a Google Form dynamically, and emailing it, using Google Apps Script. I have all the users info, and have figured out how to record the response. However, I would like to add that person's email to the row in the sheet. It would be ideal if there was a way, since we already collected their email, to pass this email in the "background" to the form we send, and it is attached with there answer in the responses sheet. Thanks! 回答1: I was not able to rest until I got this worked out.

Logging the Latitude and Longitude of the person submitting the Google Form

百般思念 提交于 2019-12-11 05:35:24
问题 I have a simple Google Form generated through Apps Script. I cannot seem to find any documentation on how to record the Latitude and Longitude of the user who submits a Google Form. Any guidance or tips would be highly appreciated. 回答1: Google Forms doesn't include a way to automatically record the geolocation of the form respondent. Related questions Is it possible to record latitude and longitude from google forms (Unanswered at this time) Reference https://developers.google.com/apps-script

Google Script - Forms - Issues Deleting Page Breaks/Sections - “Invalid data updating form”

*爱你&永不变心* 提交于 2019-12-11 05:09:46
问题 I am having an issue with the following code when trying to iterate through the items in a form and delete them to make way for new sections/questions. However, I sometimes get the following error "Invalid data updating form". I have worked around this multiple times now, but it keeps coming back up. My current workaround has been to set the section title to "", which made it available to delete. Previously, I didn't need to do this until today. My question: What is the best way to iterate

Google api - how do you get the text in Forms?

空扰寡人 提交于 2019-12-11 03:46:59
问题 When i call getContent() on a Form file, it returns empty / null. How do I get the textual content of a Form file in Google Drive? 回答1: You're right that you need to use Forms Service to extract the contents of your Google Form. If you want to get the contents of the form (questions with choices), you need to use getItems() method to get an array of all items in the form. // Open a form by ID and log the responses to each question. var form = FormApp.openById('Form_ID'); // Logs the questions

Validating email addresses in Google Forms

时光总嘲笑我的痴心妄想 提交于 2019-12-11 03:44:53
问题 I want to use a Google Form to populate a Google Spreadsheet. One of the fields is email address, and I need to validate this against the list of emails for our organisation - in other words forcing people to use valid and existing email addresses. Our organisation uses Google Apps. The form will be created by a user who is in our organisation and only email addresses from our organisation/domain will be considered valid. 回答1: You can use the experimental Apps Script Domain Services API. Here

Google Forms Script to Move User to New Page in the Form

戏子无情 提交于 2019-12-11 03:18:18
问题 If I have a Google Form, how might I use Apps Script to: 1.) Get the user's responses to questions on one page of the form INTERJECT SCRIPT LOGIC 2.) (pause) the form and have the script activate to: process their results depending on the result of that processing, move them to a different page Basically, I want to have the script analyze the results of a particular page, and redirect them to a new page depending on the results to multiple answers . There is a redirect utility in the form

getFormUrl() in google spreadsheet return url only of last linked form?

你。 提交于 2019-12-11 03:07:18
问题 I have two forms linked with one spreadsheet, one sheet for each form. When I run such script function myFunction() { var ss; ss = SpreadsheetApp.getActive(); Logger.log(ss.getFormUrl()); } I will see only one url (as life shows url for the second form). Is there any way to get urls for all linked forms? 回答1: This functionality is currently missing in the API. There is an existing request on the issue tracker for this here. Star that issue to follow it for the resolution. 来源: https:/