google-form

Get Google Form ID for edit

与世无争的帅哥 提交于 2019-12-13 03:27:26
问题 I am using Google Form. I submit the form. How can I get a/the link for editing the answer of this form, by using Google Apps script? I want to send an email containing a link for editing answers to multiple emails, instead of just 1 email (as google form provides). 回答1: If you want the link to edit the "answers" already submitted, function onFormSubmit(e){ //Trigger for this function installed from form(not spreadsheet) MailApp.sendEmail("recipient@example.com,recipient2@example.com", "Your

Google Form on Submit get values and format the time

余生颓废 提交于 2019-12-13 02:33:39
问题 I am using Google Apps Script with a Google form. When the user submits the Google Form I get a value from a question. I then take that value and make it a date object, from what I saw on this post about daylight savings I use that to determine the timezone. I run the date object through Utilities.formatDate and want to get the correctly formatted date. example: 9:00 AM But instead I am getting a completely different time than expected. My question is: Can someone help me understand why the

Cannot programmatically submit form [duplicate]

半腔热情 提交于 2019-12-12 23:31:52
问题 This question already has answers here : “Submit is not a function” error in JavaScript (14 answers) Closed 5 years ago . Cannot get my form to submit programmatically, despite trying several ways. Tried pure JS, also tried jQuery. No success. I have this form tag : <form action="https://docs.google.com/forms/d/13zex8ZsEsnZz3A8uB4jU4oDb5wZfaqqq2Pq2CGlIe6M/formResponse" method="POST" id="ss-form" target="_self" onsubmit="" name="eForm"> <!--My Form Stuff--> <input type="submit" name="submit"

Prevent Renaming of Google Forms File Upload

无人久伴 提交于 2019-12-12 10:17:45
问题 I have a Google Form that uses the File Upload feature that is mentioned on the below site, https://sites.google.com/site/scriptsexamples/home/announcements/google-forms-file-upload-feature I am wondering 2 things: Is there a way to prevent the renaming of the uploaded file. (IE: original_file_name - Name of Uploader) Concerning the below quote: If a respondent decides to upload a file directly from his Drive, a copy will be made and the form owner will become owner of the copy. Is it

Get URL Link to a “SECTION” only

此生再无相见时 提交于 2019-12-12 06:53:24
问题 Let's say I'm a hiring manager and I need to conduct an interview with 20 different candidates on 20 different dates, and I need a "yes" or "no" confirmation if they can attend on said date. I only want to show the date assigned to the interviewee in the form, but I need the other dates hidden away in the form (for the other interviewers) so they show up in the "Responses" sheet. It's also important that they feel "special", so I need to address them by there name in a pre-populated text

Google Apps Script trigger quota and limitations

白昼怎懂夜的黑 提交于 2019-12-12 06:23:02
问题 I use form submit trigger for my form which does some processing on my spreadsheets. The form submit process may take a while to complete(approximately 30secs). As responses are submitted in the form the trigger's processing time may exceed the quota of triggers run time which is 6 hours for Google Apps Work/Edu/Gov. Also the number of triggers per script limit is 20. Are there any workarounds for these problem. 回答1: It may depend on what type of quota it is. Provided in this document - Best

TypeError in Google Form script

三世轮回 提交于 2019-12-12 04:53:59
问题 In the Google form script editor, I'm using below code for insert Edit response link in the spreadsheet with form data. function assignEditUrls() { var form = FormApp.openById('1bAXKuBKQny9CLU3WOK4xxxxxxxxxxxxxxxxxxxxxxxxxxxx'); //enter form ID here var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Form Responses'); //Change the sheet name as appropriate var data = sheet.getDataRange().getValues(); var urlCol = 7; // column number where URL's should be populated; A = 1, B = 2

Extracting just the time for a new date

流过昼夜 提交于 2019-12-12 04:16:57
问题 I'm having major headaches trying to work with dates and times and it's consuming hours of my programming time, so any help much appreciated. What I'm trying to do is combine a separate date and time; It's easy enough to separate out the year and month. But when it comes to the time, it outputs: Sat Dec 30 1899 14:30:00 GMT+1300 (NZDT) The form field looks like and the time displays correctly on the sheet. How can I get the desired time of 13:00 from this, aside from formatting the entire

Event Object for Form Submit on Google Apps Script Not Working

偶尔善良 提交于 2019-12-12 03:51:47
问题 I am trying to learn Google App Scripts. I have a form with one question. Then I created a new spreadsheet for the responses. Then from the form I went to the script editor. I installed a new trigger for the function onSubmit(e). I wanted to modify the spreadsheet for responses. The event object should pass in the range that was just added. But every time I submit the form nothing happens in the spread sheet. I have the code below. function onSubmit(e){ var range = e.range; range.setNote(

Cannot call method “getEditResponseUrl” of undefined on Google Apps Script bound to Sheet when opening form using form ID

◇◆丶佛笑我妖孽 提交于 2019-12-12 03:34:55
问题 I have this function which works but it gets all responses. function setEditUrl(ss, createDateColumn) { var formURL = 'https://docs.google.com/forms/d/101bMiRw9TQaGbdDc4U_tLAD0QzicqejM9qXOEwJPQKU/viewform'; var urlColumn = createDateColumn-2; var data = ss.getDataRange().getValues(); var form = FormApp.openByUrl(formURL); for(var i = 2; i < data.length; i++) { if(data[i][0] != '' && data[i][urlColumn-1] == '') { var timestamp = data[i][0]; var formSubmitted = form.getResponses(timestamp); if