How to Automatically Update your Google Form Options

  Рет қаралды 26,144

Bootstrapping Tools

Bootstrapping Tools

Күн бұрын

If you have a drop down field in your Google Form where the options tend to change, we're going to show you how you can easily make changes to that form question without having t use the clunky Google Forms UI. This is especially useful if you want to base those options off of a dynamic dataset, such as the team member names, product selections, or anything else that might change regularly.
Master Apps Script with our beginner-friendly courses: courses.bootstrapping.tools/
▶︎Video Chapters◀︎
0:00 - Intro
1:01 - Introducing the Google Form
2:23 - Writing our new Function
3:00 - Getting our Google Form Question ID
6:05 - Using our Google Sheet to manage the drop down options
9:00 - Updating the Google Form using our new script
10:32 - Wrap up
🔔 Subscribe for more tips just like this: kzbin.info...
======= KEEP LEARNING WITH Bootstrapping Tools =======
🎬 MOST RECENT VIDEOS: / bootstrappingtools
🤖 Automate with Google Apps Script: bit.ly/BootstrappingTools-Goo...
💻 Build-Through Videos: bit.ly/BootstrappingTools-Let...
🚑 Community Support Videos: bit.ly/BootstrappingTools-Com...
🚀 Check out some of our written content: bootstrapping.tools
======================================================
👥 Looking for something specific? feedback@bootstrapping.tools
======================================================
💝 Support our channel 💝
Buy us a coffee: ko-fi.com/bootstrappingtools
Or by tipping: koji.to/k/6wBv
======================================================
🔗 Other useful content that we like and will help you on your scripting journey
Javascript for Beginners: amzn.to/3SbGzCm
======================================================
#Bootstrapped #GoogleForms #Automation

Пікірлер: 80
@fatimahamir5406
@fatimahamir5406 9 ай бұрын
Thank you! I followed every step of the way, and for someone with no coding background, my code worked! and feeling not as lost as when i started your vid. THANK YOU!
@Pool-guy
@Pool-guy 5 ай бұрын
This is exactly what I needed thank you so much for taking the time to make this video
@daviddrayton3521
@daviddrayton3521 4 ай бұрын
I've been looking for a something like this for ages! Thanks it's so useful
@BootstrappingTools
@BootstrappingTools 4 ай бұрын
Glad it was helpful!
@mca4u
@mca4u Жыл бұрын
Thank you so much you video is excellently presented and so well explained. I avoided having to manually enter 104 items in a dropdown list. Well done!
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Glad it helped
@rainerrunge2165
@rainerrunge2165 2 жыл бұрын
This has been super helpful. Thank you
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
Glad you found it valuable!
@lafamillecarrington
@lafamillecarrington Жыл бұрын
Really clear explanation. Thanks.
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Glad it was clear! Sometimes I feel like I just ramble....
@josephasinyo
@josephasinyo Жыл бұрын
Thanks, man. This was super helpful!
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Awesome sauceeeee!
@EmmaEffect1
@EmmaEffect1 10 ай бұрын
Great video man!
@BootstrappingTools
@BootstrappingTools 9 ай бұрын
Appreciate it!
@pierremoreau7963
@pierremoreau7963 Жыл бұрын
Great video, sample explanation and usedfull
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Glad you enjoyed it!
@redforestx7371
@redforestx7371 10 ай бұрын
Bruh you are amazing. Thank you so much!
@BootstrappingTools
@BootstrappingTools 9 ай бұрын
Happy to help!
@Pool-guy
@Pool-guy 5 ай бұрын
Thanks!
@BootstrappingTools
@BootstrappingTools 5 ай бұрын
Aw thanks! I appreciate your support!
@skyndream211
@skyndream211 Жыл бұрын
Thank you very much for the tutorial. My dropdown menu has more items that setChoiceValues can incorporate. How can I add the rest of the values to the list?
@soominjo8475
@soominjo8475 2 ай бұрын
감사합니다
@BootstrappingTools
@BootstrappingTools 20 күн бұрын
😅?
@profocelsomarin4123
@profocelsomarin4123 Жыл бұрын
teria como enquanto um usuário responde um formulário (o formulário não foi concluído) eu obter uma responda de um item especifico? Colocar a resposta do item em uma variável para uso posterior? Pergunto isso porque quero fazer um formulário em que as opções de item como lista suspensa ou múltipla escolha fossem atualizados conforme a resposta de um item anterior.
@user-un8vr4kw5e
@user-un8vr4kw5e 7 ай бұрын
Hi! Amazing video thank you! So my code is up and running but I need to add a trigger whenever the items on the spreadsheet are modified. But I can't seem to find a video for this code! Can you please let me know if you have made a video for this, I found one but it was onEdit for emails not on edit for a google sheet to update the answers on a google form.
@user-lf9pu1yk3u
@user-lf9pu1yk3u 7 ай бұрын
hi ! I'm looking for a way to get my forms item IDs pushed into a sheets formula. Is there a way I can push the console.lof((items[i].getTitle() + '-' + items[i].getId()) part into a sheet ? Thanks for your help
@carlosescutia9778
@carlosescutia9778 9 ай бұрын
Hi, is there a way for the scrips to also be run automatically? for example if I'm using forms for students entering a class but it has a maximum amount of students that can enter, can it automatically remove itself from the forms with this script? or how would I be able to do it
@MrDude6913
@MrDude6913 5 ай бұрын
Great video! Thank you for the help, I ran this code with numbers for a raffle. When the number is chosen, it is removed automatically in the Sheets and replaced with a blank spot. The code doesn't work for me since it states that "Exception: Questions cannot have duplicate choice values." since there are multiple blanks. Any way to fix this or that the code removes the blanks if there are any? Thanks in advance!!
@sirishayada2208
@sirishayada2208 Жыл бұрын
Hi, It was great and useful. Could you please explain the google form integration with Salesforce?
@BootstrappingTools
@BootstrappingTools Жыл бұрын
I don't have a salesforce account to test their api on... but based on their docs, it looks like a regular rest api and some of the endpoints use grahpql. To hit external apis in apps script - use UrlFetch.fetch(url, options)
@PrestonBurns
@PrestonBurns Жыл бұрын
If i had a way to triple like this video I would! Thank you!
@BootstrappingTools
@BootstrappingTools Жыл бұрын
😁
@user-yz9vl3xh5x
@user-yz9vl3xh5x 9 ай бұрын
HI i want to add daily auto update access code to my google form. I have created as a short answer text, which is working. but i have to update the code daily. how i write a script to link a cell from google sheet (the cell i can make to change daily)
@certificationofficedocumen3970
@certificationofficedocumen3970 2 жыл бұрын
Great video! Would you have another video or script for dependent dropdowns in GForms? Thanks and more power!
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
Thanks for reaching out! When you say "dependence drop downs" - do you mean where the drop down options change depending on what was chosen in the question before it?
@heraayesha1308
@heraayesha1308 2 жыл бұрын
@@BootstrappingTools this would be great!
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
@@heraayesha1308 I don't think that's actually possible using Google Forms since you can't change the options after the page has finished loading. However, you can do it through a custom web app that you can build and host via google apps script. It's quite involved though... Another alternative is to set up your Google Form to be multi-paged where the option selected from the first drop down question routes the responder to a different version of the next question which would each have different options. That's not as involved as a web app, but will also take a bunch of time to map out.
@moemennasser9242
@moemennasser9242 2 жыл бұрын
Thanks for the great video!! How can I get the form to update automatically whenever a change occurs to the reference sheet?
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
Yup! To do that, you could set up an onEdit trigger that watches for changes made to the reference sheet/range.
@thaddeusstegall1113
@thaddeusstegall1113 Жыл бұрын
@@BootstrappingTools Thanks so much for this incredibly helpful video! When I go in to set up an onEdit trigger, I don't get that option. I only get Time-Driven and From calendar. Am I doing it the wrong way? Thank you!
@JohnPauloMatabang
@JohnPauloMatabang Жыл бұрын
Thanks for this video, can I do this in multiple google forms?
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Yup, as long as you have the Google Form IDs, you can have a spreadsheet update the options across all of them. The tedious part will be grabbing the unique question ID from each form so it uploads correctly.
@nishanmostafa
@nishanmostafa Жыл бұрын
how can i add answer key automatically from google sheet , like i have 100 question and i have all the answer key in google sheet then how can i automatically set those answer in my form? what will be the code for appscript?
@jefflim8895
@jefflim8895 3 ай бұрын
Hi what if its a multiple choice not drop down?
@thejakeballs
@thejakeballs 2 жыл бұрын
Hi google sheets legend. I have a question that you might be able to answer. Is it possible to add entrys in the linked spreadsheet and have them be updated in the form view? At the moment if my form has 5 responses and i add some in the spreadsheet it still only shows as 5 responses in the form. I dont know how forms distingushes what rows were added by froms and then leaves out rows added in sheets.
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
Hi Jake! That is a very interesting use case you have and it's 100% possible to import responses into your google form and also have it recognized as legit responses by the Google Form. It's a bit tricky since you can't just add it to the Google Sheet... you actually have to create the response and submit it through the form. Assuming that you have quite a bit (enough to not want to do that manually), you could write a script to do that. This is a bit too complicated to explain in a comment thoroughly... but the overall summary of what you need to do is iterate through your sheet data row by row, and create an ItemResponse object that you apply into a new Form Response. So you'd do form.createResponse() to create a new form response object (let's call it newResponse) -> Then newResponse.withItemResponse(item.as___type().createResponse(your_sheet_data_cell)) ----> once you go through each question/column in the row. Then you'll do newResponse.submit()
@thejakeballs
@thejakeballs 2 жыл бұрын
@@BootstrappingTools and that is why you are the Legend 🥇 I did this and it worked 👍👍 Thanks for the info
@mdhare1515
@mdhare1515 Жыл бұрын
hello, need your help to create a dependent dropdown in *google form* using data or dependent dropdown menus from a google sheet. please guide me or if possible make a video on it. P.S : Don't want to use logic based section shuffle or *form ranger* or *cascade formatting*. thanks in advance
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Since a Google Form renders everything at once, doing dynamic field options isn't really possible without using the section based directions. If you want to keep your users on a single page and change the options of a field based on a previous field's options, I would suggest creating a web app form which you can do by creating an apps script web app. You'd leverage the doGet(e) simple trigger to present the page, some javascript to alter the field options based on what the user selects via onchange="", and then the doPost(e) simple trigger to handle the form submit.
@user-rz6kx7vx4x
@user-rz6kx7vx4x 4 ай бұрын
How can I set an Image for a ListItem?, please...
@one3185
@one3185 Жыл бұрын
Hi there, Thanks for helping me with such a great video. I just typed all your code by watching this video and successful. Question: I added a button (picture) on my google sheet and adding function name on that button. So I can update google form after I update my sheet. But when I click it gives this error "Script function Populate could not be found". I don't have any other script (this is the only 1). further Info: whenever I click on Appscript through that sheet, it always open a new script. I don't know if its relevant. can you please help. Thanks
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Hmm... it sounds like maybe the script you created isn't container-bound to your spreadsheet. To fix this - you can open up apps script from the sheet and then copy in the code. That way, you're definitely using an apps script project that is bound to that specific sheet.
@albertdilag3545
@albertdilag3545 Жыл бұрын
Good Day Bro! Could you help me about this one everytime I debug the script it only shows like this Execution log 7:53:21 AM Notice Execution started 7:51:28 AM Info RegionDropDown - function () { [native code] } It shows [native code] instead of number showing. Big help is much appreciated.
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Looks like you might be missing the () at the end of your function call.
@paolosorgente7097
@paolosorgente7097 Жыл бұрын
I have a problem with a Google form shared with a team of 50 operators. If we submit responses together, the Google sheet fails to record all the data. I would like to know how to solve this problem.
@jeffb1886
@jeffb1886 Ай бұрын
THanks for this!! But I have a problem. I'm using 2 Form questions that pull from the same list of choices in column A. I simply "duplicated" question 1 to create question 2. I don't know why, but changes to the list only show up for question 1, not question 2. Is there something I need to add to have it update both question lists?? THanks!
@BootstrappingTools
@BootstrappingTools 20 күн бұрын
Hi Jeff! Yeah, that could happen in this case b/c the Question's text is the same. A way around this is with using the question IDs, but you'd have to go through a few steps to get those. Fortunately, you only have to do that one. The other option is to slightly alter the question text so that they're unique between the two questions.
@kpmustafayilmaz
@kpmustafayilmaz Жыл бұрын
Hello. Thank you. Help me! Google forms SectionHeaderTitle automatic update at the google sheets. Have its Google apps script code?
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Hi Mustafa, I'm... not sure I understand your question. 😅 What are you trying to do?
@kpmustafayilmaz
@kpmustafayilmaz Жыл бұрын
Problemi çözdüm. Teşekkür ederim 🙏
@sanmayjain6343
@sanmayjain6343 2 жыл бұрын
Great Tutorial Man !!! Btw I had another problem with my google forms. I have a different spreadsheet which contains all the names of our clients in a table. I copied that data onto the drop-down list in the google form. I wanted it so that when anyone adds another name to the table in the spreadsheet, it dynamically got updated in my google forms. Can you please HELP ME ????
@BootstrappingTools
@BootstrappingTools 2 жыл бұрын
Hi Sanmay, thanks for reaching out! That sounds very similar to what we did in the video. If you use getRange().getValues() against the sheet that you're storing the client names, you should be able to send it up to your google form using the asListItem().setChoiceValues() functions. Give that a try. If you run into any issues, feel free to reach out and I'll be happy to help you debug your code. Good luck!
@rainerrunge2165
@rainerrunge2165 2 жыл бұрын
Add an on change trigger to the spreadsheet to execute the sync function
@albertdilag3545
@albertdilag3545 Жыл бұрын
Good Day bro, My script is working now how would I share it to my co worker? Thank you answering.
@BootstrappingTools
@BootstrappingTools Жыл бұрын
To all others to use it, they'd have to authorize the app. You can create a custom menu option that'll let them do that. The alternative is to deploy a private add-on to your Google Workspace account.
@serhatokan7421
@serhatokan7421 Жыл бұрын
hi , it was great and useful, can you share source code please ?
@BootstrappingTools
@BootstrappingTools Жыл бұрын
This one's pretty old - I'll make a new video on this.
@pascalrobert2934
@pascalrobert2934 Жыл бұрын
Hello. It sounds exactly like what I want to do. However, being a dumb user, I tried to follow "letter by letter" what you showed, and I bump into an answer "items is not a function". Please help.
@pascalrobert2934
@pascalrobert2934 Жыл бұрын
Forget my question, I typed ( instead of [. Thank-you.
@BootstrappingTools
@BootstrappingTools Жыл бұрын
Haha, I can't count how many times I made little typos that I spent hours trying to debug and fix. Happens to all of us - usually we can laugh about it later on :)
@pascalrobert2934
@pascalrobert2934 Жыл бұрын
@@BootstrappingTools Another question: I understand that the form will be updated when someone runs the script. Is it possible to have the form updated each time it is opened? So that people using the form will always have the updated list. I hope my question is clear.
@BootstrappingTools
@BootstrappingTools Жыл бұрын
@@pascalrobert2934 Unfortunately, the onOpen trigger is a bit restricted in what it can do - it's auth mode is LIMITED based on Google's rules. There's a couple of ways around this though: 1. Have a script that updates it whenever someone updates the options in a google sheet via the onEdit trigger 2. Create a time-based trigger that constantly updates the form options on a set schedule (e.g. every day, hour, 30min, etc)
@pascalrobert2934
@pascalrobert2934 Жыл бұрын
@@BootstrappingTools N°2 sounds like an excellent idea. Thank-you. A daily update would be great. Any idea on how to do that? As mentioned earlier, I am a dumb user, having no skill in google programming. I don't even know what a trigger is (even though I understand the meaning). Thank-you.
@pag3160
@pag3160 3 ай бұрын
Hey Dude Can you help Me I need your Help ?
@socacloud
@socacloud Жыл бұрын
Great video! I have no idea why I'm getting the error code (ReferenceError: organization is not defined setOrganizationDropdown @ Code.gs:18). I reviewed the code several times for typos, but nothing worked. Can you offer any suggestions? Thank you!
@imamidevz9245
@imamidevz9245 8 ай бұрын
Could you please provide the script. Not so techy here but I'm following your video.
How to Automate Data Entry in Google Forms with multiple pages
40:25
Automation Made Easy
Рет қаралды 75 М.
Google Forms - Drop Down List from Spreadsheet Using Apps Script
34:39
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 437 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 33 МЛН
Получилось у Вики?😂 #хабибка
00:14
ХАБИБ
Рет қаралды 7 МЛН
Don’t Use Google Forms Without These FREE Add-Ons!
16:03
Simpletivity
Рет қаралды 45 М.
How to Auto-Send Emails on a Google Form Submission
19:54
Bootstrapping Tools
Рет қаралды 34 М.
Form Ranger Add-on | Google Forms Dynamic Drop-Down list from Google Sheet
10:39
Kewal Kishan - Automate Business
Рет қаралды 26 М.
How to create a data entry form in Google Sheets [with multiple databases]
14:52
Google Forms to PDF & Email while storing data in Google Sheets
27:02
Learn Google Sheets & Excel Spreadsheets
Рет қаралды 161 М.
Automate emails with Google Forms and Google Apps Script
36:42
Matt Brigidi
Рет қаралды 12 М.
Use Google Forms to Auto Fill Google Sheets with Data
16:40
The Computer Lab
Рет қаралды 395 М.
Create a Button that works in mobile in Google Sheets
13:38
Practical Sheets
Рет қаралды 29 М.
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 33 МЛН