Google Forms - Create Dropdown Lists and Multiple-Choice Questions from Google Sheets

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 196

  • @labnol
    @labnol  4 ปีที่แล้ว +23

    Google Script - www.labnol.org/code/google-forms-choices-from-sheets-200630
    How to bulk add options for dropdown lists and multiple-choice questions in Google Forms with data from Google spreadsheets!

  • @wedoc8982
    @wedoc8982 3 ปีที่แล้ว +9

    hi thanks great tip.
    is there a way to make a conditional dropdown
    2 dropdown questions the second dropdown will fullfil depending the answer in first question
    thanks in advance

  • @KHUBAASINGOFFICIAL
    @KHUBAASINGOFFICIAL 4 ปีที่แล้ว +13

    Please make video on how to do dependence drop down list in google form like State > District > City

  • @rajeevbagri
    @rajeevbagri 3 ปีที่แล้ว +5

    Thanks, Mr. Amit.
    This video tutorial was very useful & I was able to create a Google Form using the script.
    But I have a question, how to create multiple Google Form Dropdown List with the same Gogle Sheet.
    It will be of great help If you can share the video tutorial on the same.

  • @KarenChungIvy
    @KarenChungIvy 3 ปีที่แล้ว +5

    I'm not a coder and know very little about script writing, but this video is very informative and helpful - thank you!

  • @tiffanygoodin70
    @tiffanygoodin70 3 ปีที่แล้ว +4

    Hi Amit, is it possible to use this option to select a list of items for Question 2 base on what was elected in Question1, i.e. Question 1 is a dropdown to select a town name, Question 2 must be all the doctors in that specific town that was selected in Question 1, almost like a filter.

  • @sidshah16
    @sidshah16 3 ปีที่แล้ว +4

    Hi Amit - how can we have a search option in google form in drop down option, if the list of selection is more it is difficult to use dropdown menu

    • @kulvinder8211
      @kulvinder8211 3 ปีที่แล้ว +3

      Same Question From Me.

  • @gabrielnoira3848
    @gabrielnoira3848 3 ปีที่แล้ว +1

    ypeError: Cannot read property 'getDataRange' of null
    populateGoogleForms @ Código.gs:9

    • @aniljadhav6445
      @aniljadhav6445 3 ปีที่แล้ว

      Me too getting same error. Please give solution for this

    • @gabrielnoira3848
      @gabrielnoira3848 3 ปีที่แล้ว

      @@aniljadhav6445 there is an option for dropdown menu in google forms we don't need this

  • @caiozacardi3116
    @caiozacardi3116 3 ปีที่แล้ว +3

    I'm having this error: TypeError: header.forEach is not a function (linha 8, arquivo "Código")

    • @jz9859
      @jz9859 3 ปีที่แล้ว

      Are you able to sort this out please? I am getting the same

    • @ArboGastcom
      @ArboGastcom 3 ปีที่แล้ว

      Hi, how did you corrected this error. I'm getting the same error. Kindly advise

  • @cherylphillips1927
    @cherylphillips1927 3 ปีที่แล้ว +3

    I keep getting this error, though my code is exactly what you have. ReferenceError: choices is not defined (line 21, file"Code")

    • @maojpatra
      @maojpatra 3 ปีที่แล้ว

      I am also getting the same error.

  • @dylanmackay2981
    @dylanmackay2981 5 หลายเดือนก่อน

    Great video. Thank you sir. But what if you want multiple dropdowns, checkboxes or multiple choice items in your form? Can you only have one of each?

  • @jannickfinne1919
    @jannickfinne1919 3 ปีที่แล้ว +2

    Hi, great video - I do however get this error:
    "TypeError: header.forEach is not a function"

  • @markjohnson8355
    @markjohnson8355 5 หลายเดือนก่อน

    This is a GREAT video, and it solved a big issue for me! But, it also created a problem. All of my "Go to section based on answer" information gets erased every time the form updates with the sheet data. How can the code be changed to assign the "Go to section" information each time the form updates?

  • @nihadnassar
    @nihadnassar 2 ปีที่แล้ว +1

    I want to make a google sheet where the options would be limited based on the dropdown they select. For eg: If they select a country like India then the next dropdown should be of all the states. And also I need the form to automatically enter a country code when they select the country when i download the data later in sheets. Could you help me with that.

  • @ricv3157
    @ricv3157 ปีที่แล้ว

    Hmm some changes to the coding apps stuff, makes this not work. Also the script on the website is radically different from the video.... Kind of doesnt help.

  • @JohnPaulDelaRosa-xm5ry
    @JohnPaulDelaRosa-xm5ry 7 หลายเดือนก่อน

    i get this error even though i already set the permissions, can someone help
    Exception: No item with the given ID could be found. Possibly because you have not edited this item or you do not have permission to access it.

  • @ileneval1607
    @ileneval1607 3 ปีที่แล้ว +2

    Thanks for the video. Actually, the code that you show in this video is not the same code that is in your web, wich one works? I tried the one that is in your web and it's an error in line 10. Thanks.

    • @maojpatra
      @maojpatra 3 ปีที่แล้ว

      I am also facing same issues. How do you permit the execution of this function on the form. My get the error that I do not have permission to execute function on the said form

  • @atthakur15
    @atthakur15 3 ปีที่แล้ว +1

    Im getting this Error TypeError: Cannot use 'in' operator to search for 'ABC' in undefined. Can you help me in this?

  • @BraveHeart-ht8zf
    @BraveHeart-ht8zf 4 หลายเดือนก่อน

    How to add a search box when clicking the drop down list button that contains more than a hundred data's in google forms

  • @BraveHeart-ht8zf
    @BraveHeart-ht8zf ปีที่แล้ว

    Incredible Sir...how to add searchable function especially list of data is too much

  • @MrRGvideo
    @MrRGvideo 2 ปีที่แล้ว +1

    Hello,
    Thank you for a very powerful script that allows us to simply generate drop-down menus from Google Sheet columns.
    However how to preserve or take into account the possibility of accessing a section according to the answer (for the drop-down menus). It would seem that this turnout gets lost when updating the drop-down menus.
    Thank you for your reply.

  • @JokerJax
    @JokerJax 7 หลายเดือนก่อน

    how to do the same thing on zoho forms

  • @ElthorneParkHighSch
    @ElthorneParkHighSch 3 ปีที่แล้ว +1

    Hi Amit, I am in process of creating a form and i would like to auto populate a answer when something is selected from drop down menu. For e.g if i select history department from drop down menu, it should auto populate the second section with head of department name and his email address. How can i achieve this?
    Thanks
    Arpit

  • @my_concertid
    @my_concertid 3 ปีที่แล้ว +1

    I have lots of duplicates in my google sheet that are appearing as options in the form. How do I sort and eliminate duplicates so they don't populate multiple times in the form?

  • @mariaponcardas9526
    @mariaponcardas9526 ปีที่แล้ว +1

    This is what I have been looking for hours and hours. Finally I came across your video. Thanks! Just subbed

  • @timesavertricks
    @timesavertricks 10 หลายเดือนก่อน

    I need to create a transport request form for school bus service.
    Can i get assistance

  • @TomasGennari-w1u
    @TomasGennari-w1u 2 หลายเดือนก่อน +1

    This was magical. Thank you so much.

  • @DMEOffice
    @DMEOffice ปีที่แล้ว

    3000 Dropdown party name is not add only 800 to 900 rows updated

  • @NeckJuta
    @NeckJuta ปีที่แล้ว

    From this script How to make google form can edit

  • @priyasaxena9501
    @priyasaxena9501 3 ปีที่แล้ว +1

    Questions cannot have duplicate choice values. (line 38, file "Code") I have received this error how to solve

    • @marcelkosel6142
      @marcelkosel6142 ปีที่แล้ว

      Change this:
      header.forEach((title, i) => {choices[title] = data.map((d) => d[i]).filter((e) => e);});
      to:
      header.forEach((title, i) => {
      choices[title] = [...new Set(data.map((d) => d[i]).filter((e) => e))];
      });
      in my script it works

  • @priyabratabanerjee5294
    @priyabratabanerjee5294 2 ปีที่แล้ว

    Can you do this for me? What would be the cost and how will contact ?

  • @addwiseconsultancy1608
    @addwiseconsultancy1608 2 ปีที่แล้ว

    I am unable to get output, despite of completed RUN.

  • @vincensiusprasetyoadi9677
    @vincensiusprasetyoadi9677 2 หลายเดือนก่อน

    Can you make 1 sheet to 2 google form?

  • @amitsuchday5185
    @amitsuchday5185 ปีที่แล้ว

    can u help me in creating a form ? i have a couple of queries

  • @neiltristanyabut
    @neiltristanyabut ปีที่แล้ว

    looks like there's a limit to the number of choices

  • @vivianantony9329
    @vivianantony9329 2 ปีที่แล้ว

    How to add a search field to a checkbox list

  • @muhammadkhabhir2314
    @muhammadkhabhir2314 ปีที่แล้ว

    Easy for someone thats know how to write a script

  • @timesavertricks
    @timesavertricks 10 หลายเดือนก่อน

    i tried using your script but it shows error

  • @ederdelin7288
    @ederdelin7288 2 ปีที่แล้ว +1

    Thank you for this helpful guide! Exactly what i was trying to find to get around typing all the form entries manually. The automation bit with the button is especially neat, i wasnt aware that you could do that sort of thing and will def be using it in the future!

  • @FazlulHaque77
    @FazlulHaque77 2 ปีที่แล้ว

    How to validate email addresses in Google forms based on a list of ten thousand email list sored in google sheet? Please help

  • @tanakornpromthep9025
    @tanakornpromthep9025 หลายเดือนก่อน

    Thanks for sharing

  • @mariomartinez1296
    @mariomartinez1296 ปีที่แล้ว

    woooow you Great, thanks

  • @andyw23
    @andyw23 3 ปีที่แล้ว

    I would like to do this but for Multiple-choice grids, so that a column in my google sheet populates the row names of a multiple-choice grid question.
    The columns of the grid will be set manually. Eg. I may have a questions entitled 'Animal Preference', with columns 'Dog' and 'Cat'. I then need a row for every student in my class. If I have a column with the names of all my students in it, how do I extend the script above so that it populates the rows of my multiple-choice grid?
    Thanks

  • @mdhare1515
    @mdhare1515 2 ปีที่แล้ว

    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

  • @PSMalhotra-xq8hg
    @PSMalhotra-xq8hg ปีที่แล้ว

    Thanks Amit, the video was very useful but the script writing is novice to me.

  • @paulaneira5041
    @paulaneira5041 ปีที่แล้ว

    Didnt work for me :(

  • @tuksapornwaruwanaruk5123
    @tuksapornwaruwanaruk5123 2 ปีที่แล้ว

    I can not run the Script.

  • @wassupbeauty7331
    @wassupbeauty7331 3 ปีที่แล้ว

    Hi! Can you please help me out, I want automated data entry, suppose if I fill employee code, I want rest of the fields to be filled automatically ( like name, designation, branch etc. I would be grateful if you can share the method.

  • @ConsignmentInquiries
    @ConsignmentInquiries ปีที่แล้ว

    Hello. Please help! We cannot active the license for the Enterprise edition of File Upload Forms! We purchased the standard edition then realized we needed to Enterprise edition. Unfortunately when we try to active the Enterprise license a popup notifies us the license has already been activated. Any help will be greatly appreciated!

  • @dcima59
    @dcima59 11 หลายเดือนก่อน

    Thanks so much for sharing! Simple, clear, effective! Ciao from Bologna (Italy) !

  • @gladiators-den
    @gladiators-den 3 ปีที่แล้ว

    Amit what did you do at 5:28 of video, you highlighted between the brackets and only the{} stayed behind, how did you hide the "question1": ["choice 1", "choice 2"..],
    "question2": ["choice a", "choice b"..],
    part

  • @aprilbarry3857
    @aprilbarry3857 ปีที่แล้ว

    Thank you. I've been doing this manually for WAY too long.😮‍💨

  • @jorgep2460
    @jorgep2460 2 ปีที่แล้ว

    Good stuff, uses javaScript which is helpful. Just wanted to mention scripts are now under Extensions -> Apps Script

  • @datamanagementexecutive1359
    @datamanagementexecutive1359 2 ปีที่แล้ว

    Hi Amit, Thanks for your kind help.
    I have one question that i have run the script, it ran successfully but since i have only one column. That data didn't captured in google form. Can you please help me.

  • @patelck
    @patelck ปีที่แล้ว

    Thanks for the wonderful and very useful media.
    I am building a form, in which I need to pull the data from spreadsheet (after part1 of the form is filled) and present that data in a part 2 of that form.
    To give an example, when a person submits part 1 of the form, based on the email id of the submitter, data relating to that email id from a spreadsheet needs to be pulled up and pre-filled in part 2 of the form. And then the Part 2 can be filled as usual.
    I would be grateful if you could make a nice video on the above subject as well.
    Thanks, once again

  • @franciscocalymayorpena4278
    @franciscocalymayorpena4278 3 ปีที่แล้ว

    Hi, if i want to show different things depending on the first dropdown menu, who can i do that? and did you know where i can take a course of this topics (google developer)?

  • @chsp5522
    @chsp5522 2 ปีที่แล้ว

    Hi, How can I set no.of days ie from the previous date to the present date in the google forms? Can you help me?

  • @อับดุลเลาะดอเลาะแม

    Thank you so much. it's a great tip and work for me.

  • @DMEOffice
    @DMEOffice ปีที่แล้ว

    3000 lines get error

  • @angadsingh587
    @angadsingh587 2 ปีที่แล้ว

    GreatVideo, i managed to run the code and populate some questions however, out of the 10 columns to be populated only 3 are reflecting to the form (I have copied the exact questions in the titles row). Could help me solve this problem please?

  • @bobby17117
    @bobby17117 2 ปีที่แล้ว

    Hi, am having Centers as A,b,c and when i select A in next tab i need to see persons only working in Center A. Can i have any code for this.. As i have more centers in that partners, executives and outlets

  • @agungramadhana2025
    @agungramadhana2025 2 ปีที่แล้ว

    i was making a realtime update the list(Ticketing system), but when the list from sheet is blank the dropdown on google form is showing the last option dropdown. how to disable the google form dropdown if the list of the sheet is blank ?? thanks before

  • @deborahmayers771
    @deborahmayers771 3 ปีที่แล้ว

    I am using your script and I am getting an error - ReferenceError: header is not defined. Does anyone know how to fix this? Also, I wanted to have the selection for one question based on the answer from another question (for example, if you pick say Phoenix for your city, the next question for state would only allow Arizona) Has anyone figured out how to do that?

  • @flanke27
    @flanke27 4 ปีที่แล้ว

    Syntax error. (line 1, file "Code")Dismiss.. WEhen i run, iam not seeing populated ggogle form also in List

  • @amittandon4453
    @amittandon4453 ปีที่แล้ว

    I feel it is too complicated. Google allows us to copy and paste data from an excel sheet to options. Which does the same function

  • @Josevcello
    @Josevcello ปีที่แล้ว

    Thank you so much for sharing this! I have an issue, I made it work, but I have a list with more than 1000 options, after de row 1000, the script shows that it reach its limit, Do you know an alternative option or an enhance-limit script writing for this case?

  • @amitchaudhury9840
    @amitchaudhury9840 2 ปีที่แล้ว

    sir , can you show us dependent drop list in google FORM, thanks

  • @radhakishangoswami176
    @radhakishangoswami176 2 ปีที่แล้ว

    Sir i have puted the script as you given and then run it, so running perfectly but drop down not made...?

  • @grantharrison8819
    @grantharrison8819 ปีที่แล้ว

    I don't have a script editor in my tools menu

    • @labnol
      @labnol  ปีที่แล้ว

      Go to the Extensions menu and choose Apps Script.

  • @pankzsingh
    @pankzsingh 2 ปีที่แล้ว

    Hello Amit Sir, Can you please make a detailed video on how to create and deploy a Google Sheet add-ons on Google Workspace Marketplace? This will be helpful for many people.

  • @reshmageorge1010
    @reshmageorge1010 3 ปีที่แล้ว

    Is there an option for writing against the Others while in a Drop down.
    Was able to get that automatically for multiple choice and check boxes. But others was not coming for drop down option

  • @hassenmorad2877
    @hassenmorad2877 3 ปีที่แล้ว

    Very useful, but the script on your website is noticeably different from the one used in this video. It's not working unfortunately.

  • @UsedProfessionalStrobes
    @UsedProfessionalStrobes ปีที่แล้ว

    Thank you and especially for providing a link to the code.

  • @COOKINGBIRD
    @COOKINGBIRD 2 ปีที่แล้ว

    Nice.

  • @KevinMoreno-ws9wj
    @KevinMoreno-ws9wj ปีที่แล้ว

    Thanks for the video it was useful! I was not interested in syncing this options regullarly so a solution for me was to go to my google sheet copy all of my options, and then in the form click on the question where I selected the dropdown, click on the first option and paste, it will paste all of the options.

  • @كمالابوصلاح-ع3ق
    @كمالابوصلاح-ع3ق 2 ปีที่แล้ว

    thankyou mr

  • @syedfaisal4924
    @syedfaisal4924 ปีที่แล้ว

    wonderful.. can we have depended dropdown list in google forms?

  • @ekb831
    @ekb831 2 ปีที่แล้ว

    Hi, can you create a video that show how to auto populate specific Google Form fields, based on dropdown choice

  • @Econotrix
    @Econotrix 4 ปีที่แล้ว

    How to autofill in Google quiz the Name , Father Name on the basis of ID 0f person when all this information is available in another sheet ?

  • @chicocrazy220691
    @chicocrazy220691 3 ปีที่แล้ว

    Trick: if you set a trigger in your google script, you can make your list update automatically. like As soon as a change is made in your google sheet.

  • @muhammadabrar9948
    @muhammadabrar9948 2 ปีที่แล้ว

    Hi, can i use dependent drop down in google forms without going to other section? is that possible. for example if i select india in one question the next section should only show indian cities. Again i dont want to enter new section, but want to have it on the same section.

  • @sangeetarora
    @sangeetarora 3 ปีที่แล้ว

    How can I do bulk upload of drop-down list in Google forms that has sections and common fields

  • @kanwaljeetkaur7514
    @kanwaljeetkaur7514 3 ปีที่แล้ว

    Thank you for sharing this video. Please make a video on how we can validate data on google form from google sheet and if it is correct then it automatically fill the next field in the form.

  • @bobby17117
    @bobby17117 3 ปีที่แล้ว

    I am having Centers as A,b,c and when i select A in next tab i need to see persons only working in Center A. Can i have any code for this.. As i have more centers in that partners, executives and outlets

  • @ElaineChai-n1j
    @ElaineChai-n1j ปีที่แล้ว

    very useful!! thanks Amit

  • @maruchan1773
    @maruchan1773 2 ปีที่แล้ว

    Exception: Questions cannot have duplicate choice values. (line 23, file "Code")
    line 23: item.asListItem().setChoiceValues(choice[itemTitle]);
    HELPPP!!!

    • @marcelkosel6142
      @marcelkosel6142 ปีที่แล้ว

      Change this:
      header.forEach((title, i) => {choices[title] = data.map((d) => d[i]).filter((e) => e);});
      to:
      header.forEach((title, i) => {
      choices[title] = [...new Set(data.map((d) => d[i]).filter((e) => e))];
      });
      in my script it works

  • @ashutoshsharmamagicfinmart4323
    @ashutoshsharmamagicfinmart4323 4 ปีที่แล้ว +1

    The script given in link is not working showing error on line number 38.

    • @labnol
      @labnol  4 ปีที่แล้ว

      Can you let me know the text of the error message?

    • @ashutoshsharmamagicfinmart4323
      @ashutoshsharmamagicfinmart4323 4 ปีที่แล้ว

      @@labnol, I have re-written and solved. Thanks for your response. Your this video helped me a log. Tons of Thanks.

    • @Thompa124
      @Thompa124 4 ปีที่แล้ว +1

      @@ashutoshsharmamagicfinmart4323 Can you please elaborate? I am seeing a similar error on line 39....

    • @thelutheranchurchoftheaton3059
      @thelutheranchurchoftheaton3059 4 ปีที่แล้ว

      @@labnol I get the message "Invalid argument: values (line 38, file "Code")", It appears to be referencing this line - case FormApp.ItemType.MULTIPLE_CHOICE:
      item.asMultipleChoiceItem().setChoiceValues(values); Oddly enough, the data populated but the success message never occured

  • @foliwe
    @foliwe 3 ปีที่แล้ว

    this is like watching AI typing random stuff

  • @radhakishangoswami176
    @radhakishangoswami176 2 ปีที่แล้ว

    Thank you so much sir, the video is very helpful...

  • @rafimd2915
    @rafimd2915 4 ปีที่แล้ว

    Good job sir 👍 sir please create video vlookup formula in google form

  • @MissEstefa
    @MissEstefa 2 ปีที่แล้ว

    Worked perfectly! Thank you.

  • @muhammedjasir58
    @muhammedjasir58 2 ปีที่แล้ว

    so helpful

  • @jamirulislam4801
    @jamirulislam4801 3 ปีที่แล้ว

    This is highly technical man!! Not for common people like us

  • @ishanbora510
    @ishanbora510 3 ปีที่แล้ว

    1 min silence to the ones who hit the dislike button....
    this is as simple as it can get

  • @longtimedeveloper6498
    @longtimedeveloper6498 2 ปีที่แล้ว

    If I used another form to update the source data, can I put a button on the source data form to update the other form?

  • @gauravpaithane
    @gauravpaithane 4 ปีที่แล้ว

    Extend limit for documents studio from 20 to 50 ....
    Please Sir...
    Or lauch student plan

  • @DiazFelix
    @DiazFelix 2 ปีที่แล้ว

    Thank you very much for your code and explanation!!

  • @dmedeveloper2911
    @dmedeveloper2911 2 ปีที่แล้ว

    Thank you Amit sir, this video is really helped to to automate

  • @amiyplacement7150
    @amiyplacement7150 2 ปีที่แล้ว

    is there any possibilities to arrange States by Country then Cities by States

  • @vinodshelar5268
    @vinodshelar5268 3 ปีที่แล้ว

    Very informative....Thank you sir