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

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 47

  • @desklitt
    @desklitt 7 місяців тому +1

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

  • @SFJourney52
    @SFJourney52 11 місяців тому +1

    Excellent video
    You are a great teacher

  • @ricomunnik
    @ricomunnik 9 місяців тому +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

  • @rjm842
    @rjm842 2 роки тому +1

    thank you for the excellent lesson

  • @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.

  • @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!

  • @the_bread_code
    @the_bread_code 2 роки тому +1

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

    • @practicalsheets
      @practicalsheets  2 роки тому

      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!

  • @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!

  • @yuriit.8192
    @yuriit.8192 2 роки тому +1

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

  • @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)

  • @inneuse
    @inneuse 7 місяців тому +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  7 місяців тому

      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

  • @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 ^_^

  • @Anhttse02596
    @Anhttse02596 8 місяців тому +1

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

    • @practicalsheets
      @practicalsheets  8 місяців тому

      Complicated subject
      I'll leave this nice video for you to see
      ua-cam.com/video/dYF7c3yws9A/v-deo.html
      Kind Regards

  • @bartpas12
    @bartpas12 2 роки тому +1

    Can I use the same for dropdown type of question?

    • @practicalsheets
      @practicalsheets  2 роки тому

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

  • @alaabandar6043
    @alaabandar6043 9 місяців тому +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  9 місяців тому

      Hi!
      Could you paste your code?
      Kind 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?

  • @faisalsabir3316
    @faisalsabir3316 2 роки тому

    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  2 роки тому

      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,

  • @adilsalim1337
    @adilsalim1337 10 місяців тому +1

    bro i love u lol

  • @adminanar
    @adminanar 8 місяців тому +1

    Limit of list is 1000, sucks maaan

    • @practicalsheets
      @practicalsheets  7 місяців тому

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

  • @timroche1947
    @timroche1947 2 роки тому +1

    WAY too advanced. Thanks anyway

    • @practicalsheets
      @practicalsheets  2 роки тому

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