google-form

Limit the number of lines or words using regex in Google forms

大憨熊 提交于 2020-01-07 04:36:05
问题 Does anybody know any regex to restrict a string to specified number of lines and words for data validation of a field in google forms? I have already tried the following expression ^(?:\b\w+\b[\s\r\n]*){1,250}$ That would limit to 250 words over multiple lines. but it is not working when there is any special character in the string. Any help would be appreciated. 回答1: Your [\s\r\n] matches any whitespace chars only. You may use \W to match any non-word char: ^\w+(?:\W+\w+){0,249}$ ^^ Details

How do you open a Google form from a Custom Menu Item

旧街凉风 提交于 2020-01-06 19:49:15
问题 I am brand new to Google Script and I am trying to create a Google Sheet to manage the creation of Quotes....I have created a form that will capture the Quote details and I want the user to be able to click on a Menu item at the top of the Sheet to "Create New Quote" which will open the Form. What command can I use in place of the following when creating the Menu Item so that is will Open the Form....do I need to refer to the Form ID anywhere ? function onOpen() { var ui = SpreadsheetApp

Script to populate GoogleForms response in multiple locations

时间秒杀一切 提交于 2020-01-06 18:00:11
问题 I am trying to use the same spreadsheet for multiple automated and semi-automated functions, one of which is allowing users to submit data GoogleForms. My goal is to extract form responses, such that the next blank row on a Master Sheet (titled "Apps") is populated with the newly submitted data (in which the column names are identical with that of the "Form Responses" sheet). I've been playing around with the below, with OnEdit(e) set to "on Form Submit" but that's not quite getting me what I

Script to populate GoogleForms response in multiple locations

扶醉桌前 提交于 2020-01-06 17:58:21
问题 I am trying to use the same spreadsheet for multiple automated and semi-automated functions, one of which is allowing users to submit data GoogleForms. My goal is to extract form responses, such that the next blank row on a Master Sheet (titled "Apps") is populated with the newly submitted data (in which the column names are identical with that of the "Form Responses" sheet). I've been playing around with the below, with OnEdit(e) set to "on Form Submit" but that's not quite getting me what I

How to build a decision support app with Google Apps Script (forms with subquestions)?

好久不见. 提交于 2020-01-06 14:47:11
问题 I want to create an app which helps newbie employers to take some simple decisions. So, using their answers to a form, the app asks new questions based on previous responses, something similar to a decision tree. Is Google Form a good alternative to implement this? (something like this suggested here, but with more questions: Are there alternatives based on Google Apps Script? 回答1: What you need is a Google Form with a lot of questions, whose answers redirect to different pages in the Form.

How to build a decision support app with Google Apps Script (forms with subquestions)?

心已入冬 提交于 2020-01-06 14:45:03
问题 I want to create an app which helps newbie employers to take some simple decisions. So, using their answers to a form, the app asks new questions based on previous responses, something similar to a decision tree. Is Google Form a good alternative to implement this? (something like this suggested here, but with more questions: Are there alternatives based on Google Apps Script? 回答1: What you need is a Google Form with a lot of questions, whose answers redirect to different pages in the Form.

Send all Google Forms to the same Sheets gid with Google Apps Script

不羁的心 提交于 2020-01-06 04:35:09
问题 I have a script creating multiple Google Forms that all link to one Google Sheets. I use the function FormApp.create(name).setDestination(FormApp.DestinationType.SPREADSHEET,destSheetId); multiple times to accomplish this. This works for the most part, however when I go to the destination Sheets, each Form pastes its information into a different gid of the Sheets. For example, one Form leads to https://docs.google.com/spreadsheets/d/1O8R/edit#gid=0 while another goes to https://docs.google

Generate unique Form URL for each respondent

若如初见. 提交于 2020-01-05 12:59:45
问题 I have a Google Form With a Google spreadsheet to store responses. In my spread sheet I have 4 columns: name, email, revenue, and a fourth column, Id, which is used to identify the particular recipient. What I am trying to accomplish is to generate a unique URL for each respondent so that they can respond to the form and use the same URL to edit the form at a later time. I've looked at the getEditUrl() (Google Apps Script) method which creates a unique URL for the respondent after submitting

Generate unique Form URL for each respondent

◇◆丶佛笑我妖孽 提交于 2020-01-05 12:57:24
问题 I have a Google Form With a Google spreadsheet to store responses. In my spread sheet I have 4 columns: name, email, revenue, and a fourth column, Id, which is used to identify the particular recipient. What I am trying to accomplish is to generate a unique URL for each respondent so that they can respond to the form and use the same URL to edit the form at a later time. I've looked at the getEditUrl() (Google Apps Script) method which creates a unique URL for the respondent after submitting

Unique “reference” for form response?

风流意气都作罢 提交于 2020-01-05 11:27:47
问题 I just created a Google form for online enquiries for my business. I set it up so that it sends an email to the person who submits the form using the "FormEmailer" script but my question is, is there a way I can give that person or more specifically that FormEmailer generated email a unique "Reference" number at the time of submission? Thanks in advance. Dan 回答1: Absolutely, if you are willing to do some coding on your own. You may want to look at the recently launched Form Notification add