How to update a Google Forms MULTIPLE CHOICE question from Google Sheets

Поделиться
HTML-код
  • Опубликовано: 10 окт 2024
  • In this project you´ll learn how to automatically update the options of your Questions in Google Forms from a Google Sheets Table
    ➤You can find the template from this video in my patreon page, where you´ll also have priority responses to your questions
    practicalsheet...
    You can also join my academy practicalsheets.com, where you´ll find, not only the templates for this and all the videos, but also Google Sheets Courses, technical service, and more
    ➤You can also subscribe to the channel where you´ll find a new Sheets video every week.
    Here are some of the places where you can follow and support me:
    ➤Patreon: practicalsheet...
    ➤Webpage: practicalsheet...
    ➤Newsletter: practicalsheet...
    ➤Telegram: practicalsheet...
    ➤Facebook: practicalsheet...
    ➤Twitter: practicalsheet...
    Any suggestion, question or insights, feel free to comment below

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

  • @DSK23-n2x
    @DSK23-n2x 4 месяца назад +1

    I was searching the entirety of youtube for this but atlas, I have found it. Salute to you sire!!

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

    This was extremely helpful and I appreciate your pace of instruction. Your explanations are spot on.
    Is there a way to have have an associated image located in a second sheet column show in the form when an option is selected for a dropdown. I have an image next to each of my options in the connected sheet.

  • @SFJourney52
    @SFJourney52 8 месяцев назад +1

    Excellent video
    You are a great teacher

  • @ricomunnik
    @ricomunnik 6 месяцев назад +1

    GREAT VIDEO! Thank you very much!

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

    Thank you so much for making this video. This is what I looking for and you gave me the best solution thank you so much

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

    Very helpful, thanks! One problem: when I tried this code to change rows in a checkbox grid or multi choice grid, it creates duplicate columns in the response table. Thoughts on how to correct this?

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

      You should add these line after creating the array
      responseArray=responseArray.filter(row=>row[0])
      Let me know if it works
      Regards!

  • @stinkyballsmeller
    @stinkyballsmeller 2 года назад +7

    I wasn't expecting to find a solution to the very niche problem I was dealing with, but somehow against all odds this video exists. You, Sir, are a legend.

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

      So glad to be useful!
      Thanks for your kind words!

  • @inneuse
    @inneuse 4 месяца назад +1

    hello, first of all, great video! i wanna pre populate a form with certain values that corresponds with some data from our google sheet. in my case i wanna start a survey to our customers related to their projects. so all i want to do is to show the list of all the existing projects by pro populate as a checkbox list from comma separated values from my google spreadsheet. maybe you can help me with that. thx

    • @practicalsheets
      @practicalsheets  4 месяца назад

      Hello!
      Is it not very similar to what I propose in the video?
      Please let me know if I'm not understanding correctly
      Kind Regards

  • @meem-7a
    @meem-7a Год назад +1

    i was working on developing my forms but i was facing issues with sheets but somehow your magical work hepped a lot.. thanks to the moon and back and much more..
    but i need more more explain about the checkbox questions☑ can use your cods the same way exactly or we delete from it what you deleted in the end of the video? this is the only thing that is confusing me!!

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

      Hello
      Thanks for the kind words!
      Almost exactly
      You just need to change this part...
      asMultipleChoiceItem()
      ...for the appropiate. Here is the list
      Multiple Choice - asMultipleChoiceItem()
      Dropdown - asListItem()
      Checkboxes - asCheckboxItem()
      Regards!

  • @JennyWright-b1b
    @JennyWright-b1b Год назад

    Thanks this is a useful video - is there anyway to set the correct answers? (I am using a multi-choice grid question, but can change this if need be)

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

    thank you for the excellent lesson

  • @Anhttse02596
    @Anhttse02596 4 месяца назад +1

    Please provide further guidance on how to redirect questions based on answers.

    • @practicalsheets
      @practicalsheets  4 месяца назад

      Complicated subject
      I'll leave this nice video for you to see
      ruclips.net/video/dYF7c3yws9A/видео.html
      Kind Regards

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

    Even simpler could be to use the "debug" function to check what information there is available in the code.

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

      Yes you are absolutely right
      I prefer the logs for beginners, but the debug feature can be really useful, especially when you have a lot of variables
      Thx for the comment
      Regards!

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

    Thank you very much for this video. It is invaluable and has helped me with a very specific problem 👌

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

    Thank you.

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

      Thank you for commenting!

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

      @@practicalsheets I used this on a staff sign in form where peoples names are the answer choices. I added a sort method so that it when names are added to the sheet the script sorts it automatically.
      Then I learned how to use the textFinder process combined with the getRow to make the script find the Staff name header and then start the range at the row after. So that I can put instructions at the top off the sheet. And that it would work no mater what row the header started at.

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

      @@antcannon Excellent solution! Thanks for sharing!

  • @yuriit.8192
    @yuriit.8192 Год назад +1

    Супер!!!! Дякую!!!

  • @alaabandar6043
    @alaabandar6043 5 месяцев назад +1

    Hello, I got the following error "TypeError: Cannot read properties of null (reading 'getSheetByName')
    updateQuestion @ Code.gs:15",
    Can you help, Thanks

    • @practicalsheets
      @practicalsheets  5 месяцев назад

      Hi!
      Could you paste your code?
      Kind Regards

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

    nice one! :) thanks for this. haven't thought yet its use though, but i'm sure this will come handy someday ^_^

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

    Can I use the same for dropdown type of question?

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

      Hello!
      Yes, it is very similar
      You just have to change the type of question in the code
      .asListItem
      Regards!

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

    Good tutorials but you don't need to store a map() array into another variable. The map() function changes the items of the array itself so no need to create another variable.
    Secondly for the options you can use getLastRow() with range so you get exactly what is needed.
    Another method of converting 2d array to 1d array is -> var newArray = [].concat(...array)

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

      Hello!
      Thank you for your comments
      Are you sure? I think map does create another array and you have to save it.
      What you can do is store it in the same variable of the original array
      Look what I found
      "The map() method creates a new array populated with the results of calling a provided function on every element in the calling array."
      The problem with getLastRow, is that it wont work if you have multiple columns with different length, then you would have to do a custom function for finding the lastrow of a given column
      Finally. I have yet to understand the []... But you are right, I´ll study it in the future
      Thank you again!
      Regards,

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

    how do i set the answer key of the MCQs from google sheet? Like i have 100 mcq and all the ans are stored in google sheet ,so how can i automatically set the answers in google form?

  • @adilsalim1337
    @adilsalim1337 7 месяцев назад +1

    bro i love u lol

  • @adminanar
    @adminanar 4 месяца назад +1

    Limit of list is 1000, sucks maaan

    • @practicalsheets
      @practicalsheets  4 месяца назад

      Is true!
      I invite you to check my videos on webapps. Less limitations
      Kind Regards

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

    WAY too advanced. Thanks anyway

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

      Jaja, sorry.
      I don´t know an easier a way but if I find it, I´ll post it
      Thx for the comment!