google-form | Simple AJAX request to POST data to a google form | Form library
kandi X-RAY | google-form Summary
kandi X-RAY | google-form Summary
Simple AJAX request to POST data to a google form.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of google-form
google-form Key Features
google-form Examples and Code Snippets
Community Discussions
Trending Discussions on google-form
QUESTION
according to this question, Google Form Upload files to specific new folder based on the value submitted
which lead to this code for google form script editor:
...ANSWER
Answered 2021-Jun-03 at 07:09modify itemResponses[1].getResponse().forEach(id => DriveApp.getFileById(id).moveTo(folder)); to itemResponses[2].getResponse().forEach(id => DriveApp.getFileById(id).moveTo(folder)); – Tanaike
that is the answer to my question, credit to @Tanaike.
here is the link of the comment to that answer: Google Form how to upload files and then place it into new folder based on the value submitted
QUESTION
I'm hoping to combine this open letter/Google Suite workflow (https://jeffreyeverhart.com/2020/05/18/open-letter-maker-with-google-forms-docs-and-apps-script/) with an extra approval step that requires some form of approval (e.g. a checkbox in the Google Sheet, or some sort of edit/change in a Google Sheet) that would then and only then relay the information to the final Google Doc. I've been able to use the code from Jeffrey Everhart (see below) to successfully set up a Google Form -> Google Sheet -> Google Doc open letter workflow that takes Google Form information and adds it to the Google Doc on form submit. But I have not been able to make the script work for on edit/on change triggers, despite pulling out my hair trying all day yesterday. That would be ideal, because I could simply add a Checkbox "Approval" column in the google sheet that signals whether a form submission should proceed to the next step of being added to the Google Doc. Any suggestions?
...ANSWER
Answered 2021-May-11 at 17:56How about you use the onFormSubmit
to add checkbox to each entry in your Google Forms and use onEdit
to validate checkbox and write to Google Docs.
Here I created a function for onFormSubmit
that will append checkbox to the new entries and modified some parts of appendSignatureRow()
and use it as function for onEdit
trigger to write to Google Docs if the entry is checked.
Forms:
Spreadsheet Data:
Installable Triggers Setup:
Code:
QUESTION
Hi GAS/Javascript experts,
I found the script to auto-generate sequential IDs starts from which number we defined in a variable : Auto sequence ID However, I need to add 3 leading zeros to make sure the number of digits will be standardized to 6 digits in total inclusive the generated IDs. eg. 000100, 000101, 000102, 000103, .... And if so happens that the data rows will be more than 999999, the subsequence digit should automatically be added to be 7 digits and so forth.
Anyone can help to amend the script to achieve the above objectives, please? Tqvm.
The current script is as follows :-
...ANSWER
Answered 2021-Apr-09 at 15:11sheet.getRange("A2:A").setNumberFormat(0);
QUESTION
This question comes from a previous one almost solved: Save a Google Form as PDF on a Drive's folder using Google Scripts
IntroductionPerhaps this is a technical question and I am not programmer, so if possible I want a step-by-step answer so I can fully understand it.
The steps and purpose of the code are explained here: Hacking it: Generate PDFs from Google Forms.
The code is posted on the link but I post it here anyways:
...ANSWER
Answered 2021-Mar-30 at 02:05here's what one of my oauthscopes looks like:
QUESTION
I used the code from @contributorpw on this post get Entry ID which is used to pre-populate fields (Items) in a Google Form URL and added the extended list of form types from @SourceFli (in same post).
I get the error message: "Exception: The parameters (String) don't match the method signature for FormApp.CheckboxItem.createResponse". That checkbox has only 1 option: "yes".
The rest of all my form items are only TEXT items and work fine.
...ANSWER
Answered 2021-Feb-23 at 00:51response
of createResponse(responses)
of Class CheckboxItem is String[]
. In your script, the string is used. I thought that this might be the reason of your issue. So how about the following modification?
QUESTION
I am comparing the two string in the IF block and both of the strings are not null but a really weird error is being shown. Even though this same code is working with using simply servlets. But when I run this code in JSP it gives the error. I have already checked if the values were null but the output is exactly what was input in the form. My code is this
...ANSWER
Answered 2021-Jan-16 at 11:34Found the answer. Use wrong method.
QUESTION
This is the next episode of my previous question (which was solved): Google Form Upload files to specific new folder based on the value submitted
SO, I succeeded to create a new folder on Google Drive based on value inputted by user in field NAME
using this script.
ANSWER
Answered 2020-Oct-28 at 08:24I believe your goal as follows.
- When the folder name of value of
Name
is existing, you want to create new folder by adding the suffix.- As a sample situation, when the folder name of
sample
is existing andName
ofsample
is submitted, you want to rename the existing folder name tosample_01
and want to create new folder with the folder name ofsample_02
.
- As a sample situation, when the folder name of
- In your situation, the script is put in the container-bound script of Google Form. And
onFormSubmit
has been installed as the installable trigger of OnSubmit trigger.
In this case, I would like to propose to modify the script of "Prepare the folder." as follows.
Modified script: From:QUESTION
so basically the task is quite simple, but I didn't find any workable solution for my problem. I have a huge upload script on my website (at the moment localhost), but lets reduce all the complexity to the only neccessary.
So I just want to upload a single file to Google Drive with Google App Script and receive the URL of it to save it in a var, to work with that information on a later point in my function.
Now the problem is I already have the form on my website, I dont want the form inside script.google.com as extra html, I want to transfer my user input to Google App Script, then upload it to google drive and return the url back to my website where I can save it into a var.
My problem now is, I cant put all the stuff together.
This is the form on my website (simplified):
...ANSWER
Answered 2020-Aug-14 at 07:09I believe your goal as follows.
- Your web site is not related to Google account. It's independent.
- Your web site has a form for uploading a file.
- When users submit the form, you want to upload the file to your Google Drive without the authorization, and want to return the URL of the uploaded file on Google Drive.
- About "Database", this is your database. You will put the retrieved URL of the file to "Database" at the client side.
In this case, I think that your goal can be achieved using the Web Apps created by Google Apps Script.
Usage:Please do the following flow.
1. Create new project of Google Apps Script.Sample script of Web Apps is a Google Apps Script. So please create a project of Google Apps Script.
If you want to directly create it, please access to https://script.new/. In this case, if you are not logged in Google, the log in screen is opened. So please log in to Google. By this, the script editor of Google Apps Script is opened.
2. Prepare script.Please copy and paste the following script (Google Apps Script) to the script editor. This script is for the Web Apps.
Server side: Google Apps ScriptPlease set the folder ID that you want to put the file.
QUESTION
I have a google sheet that gets updated from a Google Form. Unfortunately, Google forms insert a new row for every response so I can't get the formula applied to every row automatically. I found a workaround using arrayformulas here: https://www.labnol.org/google-form-formulas-050520#auto-number-form-responses-with-a-unique-id
and tried this:
...ANSWER
Answered 2020-Aug-13 at 14:12try:
QUESTION
I'm creating a Google-Form like application using angularJS and md-table, and to create my questionnaires i iterate through an array of questions, then through the possible answers:
...ANSWER
Answered 2020-Aug-03 at 18:06Replacing
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install google-form
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page