Google Forms - Drop Down List from Spreadsheet Using Apps Script

Поделиться
HTML-код
  • Опубликовано: 9 май 2019
  • Learn how to update Google Forms dropdown lists from Google Sheets spreadsheet values using JavaScript & Apps Script.
    #googleforms #dropdown #Spreadsheet

Комментарии • 389

  • @MrTotokf
    @MrTotokf 5 лет назад +11

    Been my long time question's journey.. finally someone has the answer..very helpful..many thanks..

  • @richardmhain
    @richardmhain 4 года назад +5

    This will have better workflow than having to update both the sheet and the form everytime a dropdown is updated.
    With your script, you just update Sheet's options list then run the script and you'll have consistent sheet and form data.
    Great job - Thanks!

  • @hadireg
    @hadireg 5 лет назад +9

    Great teaching skills means a great person! Awesome tutorials! Thank you

  • @bellbenefitsgroup866
    @bellbenefitsgroup866 3 года назад +6

    This is really my favorite channel. Much appreciated.

  • @narasimhakumar6427
    @narasimhakumar6427 3 года назад

    Brilliant. The simplest way to explain the sheets-forms relationship.

  • @rogersantoyo
    @rogersantoyo 5 лет назад +25

    Wonderful! You've answered my request!! :))
    This has helped me a lot, and I'm very grateful.
    Hopefully it helps many others as well.
    And as always, excellent explanation.
    Thank you! Thank you!!
    (...but now I undestood your suggestion to use Web app instead...)

  • @SilverfoxTOAO
    @SilverfoxTOAO 4 года назад +17

    I love your easy teaching style! Very easy to follow. The step by step troubleshooting is amazingly informative. Thank you!

  • @e2xsq
    @e2xsq Год назад +1

    Really good teaching style, casually explaining your logic as you type makes it easy to follow.

  • @litening73
    @litening73 Год назад

    Thank you for this clear step by step explanation. I am selftaught myself, but your explanation took away a lot of the guess work when trying to code. Thanks for explaining why you code certain things you do. THis will be very useful for all my other type of coding!

  • @jismaelcr
    @jismaelcr 5 лет назад

    Cómo siempre profesor, admirable su trabajo, saludos cordiales desde Los Mochis Sinaloa México.

  • @carlosmiquelkoivula1558
    @carlosmiquelkoivula1558 4 года назад +4

    This tut deserves a " subscribed"!

  • @mcfale
    @mcfale 3 года назад

    Thank you for your tutorials! I've learnt a lot from you these moths and I want to thank you for sharing all your knowledge in these videos.

  • @i.k.shaikh3772
    @i.k.shaikh3772 5 лет назад +6

    Very Informative Tutorial, Thanks for Sharing 👍
    I request you to please make a tutorial on response through a trigger on form submit with the relevant results in an email.
    Hope to see this in your next video.
    Regards

  • @DavidRajM
    @DavidRajM 2 года назад

    Amazing video... Just because I don't know how to do this, I was using Web app as you have mentioned... But for small list populations like my subject lists, this is a cool options now. Thanks a lot for this.

  • @hanshernandez7323
    @hanshernandez7323 Год назад +2

    Thanks for this video, I had an issue with repeated data values, because I was using last names. but I used concatenate and merged first and last names and it worked like a charm...

  • @patricksauve9139
    @patricksauve9139 3 года назад +1

    that was awesome! i really learned a lot just looking at how you got to the end.

  • @kivancaktas
    @kivancaktas 4 года назад +1

    Your tutorial style is impressive it can help both beginners and seniors.

  • @manshautube
    @manshautube 4 года назад +1

    Thank you very much for the series of videos. I have learned a lot from your course materials.

  • @geova26
    @geova26 4 года назад

    Thanks for this! Just what I was looking for!

  • @ryanafif5559
    @ryanafif5559 3 года назад

    Thank you so much for this helpful tutorial. Mega explanation. Easy to understand. Spot on!

  • @flyjodel
    @flyjodel 3 года назад

    You teach quickly and efficiently, your lessons answer all my questions and allow me to move forward quickly. And in addition it is a real pleasure to watch your videos. Even I like reading articles, learning through your videos is great and fast, to my opinion. Thanks thanks thanks !

  • @marcnaidu5804
    @marcnaidu5804 5 лет назад +2

    Good video man. Thanks 🙋🏻‍♂️
    I like to use fruit selection in my proof of concept designs as well. Usually durians have a big part to play ... 😀

  • @marcelokling9354
    @marcelokling9354 4 года назад

    Thank you for your time! Congrats.

  • @atulsrivastava4438
    @atulsrivastava4438 4 года назад +5

    Hi, Thanks for this tutorial. It was really helpful. I have a spreadsheet with thousands of unique ids call them emp IDs. Now I want to put a validation that inputs given by any google form user must be validated from that emp ids in spreadsheet. Currently they are putting it manually. Even if I create a dropdown as explained here, it will be difficult for them to search from thousands of IDs and select correct one. Your help is really appreciated.

  • @ricardorechi7198
    @ricardorechi7198 4 года назад

    Thank you for this tutorial! It woks perfectly for me!

  • @karanpalaskar2285
    @karanpalaskar2285 4 года назад +1

    Thank you so much for detailed guidance.

  • @irfanmauludin8839
    @irfanmauludin8839 4 года назад +1

    What an informative and intuitive tutorials. Thank you very much Bro, it's very helpful for me to maintain my GForm,. :)

  • @Avi8053
    @Avi8053 3 года назад +3

    They have an add-on called Form Ranger which can do this now.
    I am really thankful to you for making this video though.

  • @jorgemariomadera7658
    @jorgemariomadera7658 4 года назад

    I am really thankful, this is an amazing explanation and very useful information.
    Thank you so much

  • @billschnoebelen40
    @billschnoebelen40 2 года назад

    I have watched a several of your videos. They are very good! Thank You!

  • @lyndonllido1194
    @lyndonllido1194 3 года назад

    Excellent, very useful, very informative, Thank you very much!

  • @ubuhariali
    @ubuhariali 4 года назад

    straight to the point. thanks

  • @TanveerChandok
    @TanveerChandok 3 года назад +1

    Great guide - I've adapted this with alert dialogues to push changes to forms. Thank you! The next update will be to allow the user to choose what type of data is in the form, and then update accordingly - Dropdown or Radio Button

    • @so8075
      @so8075 3 года назад

      Any chance you could share it?

    • @TanveerChandok
      @TanveerChandok 3 года назад

      @@so8075 hey - it’s part of a live project, so I’d have to create a new project and set it up to share. Anything I can answer here via text?

  • @LucianoMartinss
    @LucianoMartinss 2 года назад +1

    Great video! Excellent class! Thank you!

  • @dadamnicholson
    @dadamnicholson Год назад

    This video was incredibly helpful! Thank you!

  • @Renatoponto1
    @Renatoponto1 3 года назад +1

    Thank you. You light me up.

  • @rajamufti6698
    @rajamufti6698 4 года назад

    Thank you, man!!!

  • @FranciBahamult
    @FranciBahamult 3 года назад

    Thanks for sharing your knowledge! best internet video on this subject

  • @nunocautelacruz1921
    @nunocautelacruz1921 3 года назад

    Thanks a lot for this, "mini class"! Its was very useful.. :)

  • @normahd
    @normahd 4 года назад +1

    Tqvm sharing👍

  • @edgardomartinez4702
    @edgardomartinez4702 2 года назад

    Thank you for this very useful tutorial.

  • @victoriaparker899
    @victoriaparker899 4 года назад

    so great! thank you!

  • @JosueMCW
    @JosueMCW 5 лет назад

    YOU ARE THE BEST!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @Alexander_Excel_Genie
    @Alexander_Excel_Genie 2 года назад

    Thanks sensei, nice vid! beeen googling for a day or two, found three or four methods to do that but got stuck in implementation for my project, cause I don't know a thing about JS. with your step-by-step testing, I think i'm getting close to it. Best regards

  • @shuchiyang1122
    @shuchiyang1122 Год назад

    Thanks for your video. I found the clue to my problem during your video.

  • @olofstefenson7082
    @olofstefenson7082 2 года назад

    Great guide. I would like to add however that Google has recently disabled less secure app access so it has become necessary to edit the json manifest file and maybe even create a project to manage authorizations.

  • @supiyantohasan3776
    @supiyantohasan3776 4 года назад +1

    Thanks for this tutorial! It helped a lot!

  • @GeekyDad84
    @GeekyDad84 Год назад

    I'm still very new to App Script and learning JS right now to help improve upon what I can do to make things where I work more efficient and automated. I've learned so much from your video's. Just wanted to send a little something to say thanks.

  • @lauraa.3593
    @lauraa.3593 4 года назад

    Excellent! Thanks!

  • @kazemzarif
    @kazemzarif 3 года назад +1

    It was really helpful. You Made My Day !!!!!

  • @lkamons2
    @lkamons2 11 месяцев назад

    This is an outstanding tutorial!!! Thank you

  • @shofanfiangga6643
    @shofanfiangga6643 3 года назад

    Done, thank you so much

  • @emanuelv5934
    @emanuelv5934 2 года назад

    Thanks for this tutorial!

  • @wirot125
    @wirot125 4 года назад

    Thank you very much.

  • @garrytalaroc
    @garrytalaroc 2 года назад +1

    Thank you so much. Im gonna use this for my students

  • @amirsyafrudin
    @amirsyafrudin 4 года назад +8

    Thank you for the effort. This is a good starting point for me when I'm trying to grab data from a spreadsheet to prepopulate a form. That said, this is a bit too complex for someone who just wants to grab values from a single column in a spreadsheet and put them in a single question in a form. A much simpler and more straight-forward tutorial should be more helpful.

  • @mariamar5654
    @mariamar5654 4 года назад

    Thank you ,very interesting! Is there a way to upload the questions directly from the sheet? Or a way to work with dropdown, write answer and option button at the same form?

  • @apolovzla_ccs
    @apolovzla_ccs 5 лет назад +2

    as always, great video bud 👍cheers for your efforts of helping and sharing knowledge.
    One thing that Google Forms lacks is dependent or dynamic drop down lists, it would be great if Google would add that function to Forms.
    Once again bud, great video. Thanks.

    • @zr2ee1
      @zr2ee1 5 лет назад

      yeah they've been needing to do it for a while, i think the reason they haven't is because they're reliant on 3rd party developers to create add on's to supplement those features. There are currently several add on's for forms that claim to do this "Form ranger" and "Dynamic Fields" although i haven't tried using either of these myself yet. I agree Google does it best when they simply bake these features into their apps though.

    • @apolovzla_ccs
      @apolovzla_ccs 5 лет назад

      @@zr2ee1 actually i have used some of those add-ons and they don't work very well.

    • @apolovzla_ccs
      @apolovzla_ccs 5 лет назад

      @Guillaume Duluc i thought about that, but the problem with that is: will it work will you choose answers from the form? i mean, does it update on real time? form ranger does something like that 🤔

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  5 лет назад

      Maybe just use a Web App instead if you want a form with all those bells and whistles?

    • @zr2ee1
      @zr2ee1 5 лет назад +3

      @@ExcelGoogleSheets cause we're retarded and haven't fully learned how to code yet lol

  • @Shahadatuliskandar
    @Shahadatuliskandar 2 года назад

    VERY EXCELLENT WALK THROUGH!

  • @setifprfu9595
    @setifprfu9595 2 года назад

    great course thank you

  • @classicguy7813
    @classicguy7813 3 года назад

    Great teamwork

  • @sdabkutara5444
    @sdabkutara5444 2 года назад

    love this video very much. thanks

  • @raulrojas2777
    @raulrojas2777 3 года назад +1

    Muchas Gracias!

  • @PropertiDong
    @PropertiDong 4 года назад

    Nice tutorial 👍

  • @sashalee5498
    @sashalee5498 2 года назад

    This was very helpful and easy to replicate - thank you!

  • @Shkur777
    @Shkur777 4 года назад +1

    Wow cool did not think that possible

  • @drewboshek
    @drewboshek 3 года назад +5

    This video was very helpful. I followed it step by step and replicated the results.
    I really appreciate the time you took to explain each step you made and reference where you can find similar content.
    I did run into one issue. One of the columns I am referencing in my sheet has an array formula within in.
    So in the form blanks are still shown. I assume the script recognizes the blank cells as having a value since there is a function tied to them?
    Is there a variable I need to add or change in the script editor so the blanks don't appear?
    Thanks.

    • @vibhorgoel9774
      @vibhorgoel9774 2 года назад +2

      Just import your list from google sheets into another column, again in google sheets itself. Like use query to import from A to C or another sheet and then since query only needs to fill values in one of the cells, you'll be fine.

  • @OrHaemetElad
    @OrHaemetElad 2 года назад

    Thank you!
    Everything worked fine. In the final stage I get this error
    Exception: Questions cannot have duplicate choice values.

  • @mboxapps5530
    @mboxapps5530 28 дней назад +1

    thanks for excellent tutorial

  • @cheewurz
    @cheewurz 5 лет назад +1

    How would you Replicate a Layout (which is Auto-Expandable BTW) in Sheets?

  • @plataformacolmena663
    @plataformacolmena663 4 года назад

    Thanks!!!

  • @amandeepsapiens9448
    @amandeepsapiens9448 Год назад

    Bro, You are Awesome... That's what I was looking for.... Thanks for Uploading it..... Love you Bro.. Keep Posting such videos.... I love you

  • @mohanlalkoli12
    @mohanlalkoli12 4 года назад

    you are genius !

  • @user-xi9ez2hf1w
    @user-xi9ez2hf1w 8 месяцев назад

    This is an awsome video, I appreciate your detail.

  • @DrAjaoMedia
    @DrAjaoMedia 3 года назад

    Thanks so much for doing this. You mentioned that this is not the most efficient way of doing this. What more efficient way were you referring to?

  • @valuecreation9476
    @valuecreation9476 4 года назад

    Thanks for your videos. can you please post something on validations on date type question in forms

  • @chryzm27
    @chryzm27 4 года назад

    Hi, thanks for all your videos it helps me a lot.
    I'm just curious if this is done in google form side, will it update the form without clicking any button from google sheet?

  • @julian.kollataj
    @julian.kollataj 4 года назад

    Awesome! Just what I've been looking for! :D Do you have videos about Webapps together with using Google Sheets?

  • @sankarbiswas5945
    @sankarbiswas5945 3 года назад

    Thanks a lot!

  • @jeangiscan
    @jeangiscan 3 года назад

    Great! Thanks a lot!

    • @MrThecaliskan
      @MrThecaliskan 3 года назад

      Hi. I am trying to follow the video and write the code, However when I copy the line "updateDropDownUsingTitl(title,values)" at 28:06 code start to give errors all around. If you have a fully written working code could you share? Thank you. ismail

  • @acetechho9017
    @acetechho9017 Год назад +1

    Very Nice explanation and useful video, thank you ! I am looking transfer Dropdown selected value in Google sheet From Google Form and run Google sheet App script Automatic.

  • @muhidark
    @muhidark 4 года назад

    nice tutorial

  • @heinrichhelmbold419
    @heinrichhelmbold419 5 лет назад

    Thank you so much for the time and effort you put into this! This has been a HUGE help. Just one more question... could you show a way of running this exact script from the Google sheet? So basically “on load” it will run the script.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  5 лет назад +2

      At this moment Forms can't run other apps on load.

    • @heinrichhelmbold419
      @heinrichhelmbold419 5 лет назад

      @@ExcelGoogleSheets Thank you for the reply. You mentioned in the video that you can write the script in Google Firms or in Sheets. So I assumed there would be "triggers" inside Forms. I understand why you prefer Web apps 😊 You have been a huge help in so many ways. Thank you!

  • @JamieMACbid1
    @JamieMACbid1 2 года назад

    Wow, your videos are so good, I have managed to use this.
    Only issue was for some reason I had to change the function name from "main" to something else because the button kept giving a main function not found error. Thank you though, I always look for your stuff when solving problems.

  • @unifysolutions7
    @unifysolutions7 2 года назад

    Thats Great, Thank You

  • @bangtran7466
    @bangtran7466 4 года назад

    thanks.

  • @ManojGuptahome
    @ManojGuptahome 2 года назад

    Thank you very much. I prefer not to use addons and third party softwares so I like your videos, they are very helpful. Is there a way to indicate the date of last update of a video. I prefer to compare the current updates.

  • @jessepierce9833
    @jessepierce9833 4 года назад

    Thanks for the video. Any way you will share your code through Dropbox or other format?

  • @erte005
    @erte005 Год назад

    its 2022!! ..and, still it helps me a lot ! !🥰Thank you

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Год назад

      👍

    • @SaraLaidlawASBINC
      @SaraLaidlawASBINC Год назад

      @@ExcelGoogleSheets Amazing workaround. Obviously, a pain to do. Do you have something in mind when you say you prefer a web app solution? I've looked at a ton of form writers and can't find "type and find" search capabilities in lookups and dropdowns. 2022 and Excel can't do it, but Google Sheets can.

  • @armenvillapando3128
    @armenvillapando3128 Месяц назад

    Thank you!
    Everything worked fine. In the final stage I get this error
    Exception: Questions "Labels undefined".

  • @mvvsolutions9549
    @mvvsolutions9549 4 года назад

    Thank you. This was a great help. SuperAWESOME. Tx

  • @erharvy1173
    @erharvy1173 4 года назад +2

    Thanks for this! I have been looking for something in which we get the image url which is inserted into a question .

  • @septon7772
    @septon7772 2 года назад

    This was great, thank you! How can we allow this to work for multiple question types (such as List, like this video demonstrates, and CheckBox)? I tried duplicating the code, having it refer to a Data2 sheet just for the checkbox questions, and now the dropdown options in Code1 are not working, though I'm not getting any errors. When I delete the checkbox code in Code2, Code1 works perfectly. Any ideas?

  • @miyagenco.ltd.3100
    @miyagenco.ltd.3100 2 года назад +1

    thank you so much bro

  • @andreajaquelinearellanodia6250
    @andreajaquelinearellanodia6250 4 года назад +15

    I really can’t thank you enough! this is just what we need. Btw, Is there a way around forms so I can start typing to search an option in a dropdown? We have like 50 different options sometimes :’)

    • @bimasanjaya1230
      @bimasanjaya1230 4 года назад

      That 'search option' is what I am looking for as well

    • @richardmhain
      @richardmhain 4 года назад +8

      Search is automatic in dropdown, just go ahead click the dropdown and type for letter or word you need.
      You just have to get a hang of split second timing for next search or more letter for a word to search.
      For example, you type X, it'll go to option that starts with X.
      If you type quickly xy then it will go to option say Xylophone, bypassing xray option.
      You type X, wait a second then type A, it will search for A, not XA.
      I hope that helps.

  • @tamizh2024
    @tamizh2024 4 года назад

    Thank you very much for this video which I was looking for. Is there anyway I can copy paste the code?

  • @brentmartone2994
    @brentmartone2994 3 года назад +2

    Can you make this script available publicly? I'm having a little trouble following along. Great video, I'm just so new to this.

  • @SrikanthRangdal
    @SrikanthRangdal Год назад

    Hey there,
    Can we do this with other question types like Checkboxes, or Multiple chice instead of Drop-down?
    I use GForms & GSheets for quizzes & attendance management system for my college. Your method could be greatly helpful if it worked on Checkboxes, or Multiple chice question types.
    Thanks in advance...

  • @wormedu
    @wormedu 2 года назад +1

    very good tutorial

  • @user-ot5nt8oy6r
    @user-ot5nt8oy6r Год назад

    Good afternoon. I have watched several of your videos and have learned how to automate a lot of work duties. Thank you for step by step instructions on all of these automations. I am having an issue with this one. For some reason, when I run the code, it puts all of my data from column 1 into the 1st option of the dropdown only. I have went back through this video several times, but am not finding where I missed steps to have this populate as Option 1, option 2, etc. Any ideas or suggestions would be appreciated.