Create a Simple Data Entry Form: Enter Data Using a Form in Google Sheets & Apps Script

Поделиться
HTML-код
  • Опубликовано: 21 окт 2024

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

  • @fatimagajia4823
    @fatimagajia4823 10 месяцев назад

    This code is very short and sweet thank you. The only thing I had to change in the script was to write "form" in lowercase instead of "Form", and it all worked smoothly.

    • @SheetsNinja
      @SheetsNinja  10 месяцев назад

      Awesome, thanks for sharing!

  • @meliodas00777
    @meliodas00777 24 дня назад

    ang because of this i love yooooooooooo but may i ask how did you do it or you just hide the rest of the column and rows that aren't use?

    • @SheetsNinja
      @SheetsNinja  24 дня назад

      So glad this was helpful! You can right-click on any single column or row number (e.g. the part where it says A,B,C etc. or 1,2,3, etc) and delete that single row or you can select multiple rows or columns and do the same thing.
      So for example if you want to delete all the rows after row 30, you can click on "31", scroll down, hold down Shift and then click on "1000", right-click and select "Delete 969 rows"

  • @kimdongryeong8331
    @kimdongryeong8331 2 месяца назад

    Thanks for your great tutorial! It's really helpful! By the way it doesn't work on Android phones, right? What can we do for Android phones?

    • @SheetsNinja
      @SheetsNinja  2 месяца назад

      I just made a new version of this video using an onEdit script, which makes this functionality available for mobile phones or tablets: ruclips.net/video/K5uOSI5i8ME/видео.html

  • @joyful_journey24
    @joyful_journey24 27 дней назад

    This was a great tutorial, I used the same script but i keep getting an error message that says "Form not defined"

    • @SheetsNinja
      @SheetsNinja  27 дней назад

      You need to make sure the tab name matches between the Google Sheet and the script (sometimes a blank space at the beginning of end of a tab name can throw you off in the script)

  • @mariacamilabm2870
    @mariacamilabm2870 10 месяцев назад

    OMG FINALLY ❤THIS IS EXACTLY WHAT I WAS LOOKING FOR. ✨🙏 THANK YOU

    • @SheetsNinja
      @SheetsNinja  10 месяцев назад +1

      Awesome, glad I was able to help! I love the simple solutions.

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

    My head hurts from trying to understand but thank you for this.

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

      It gets easier! You can make a copy of the final project and play around with it to learn more, and if you break it, you can go back to the original again. 😉

  • @nvrdyingofficial5498
    @nvrdyingofficial5498 8 месяцев назад

    do you have a video about data entry that can also retrieve the data and update it on the same field? like the excel forms?

    • @nvrdyingofficial5498
      @nvrdyingofficial5498 8 месяцев назад

      btw, your codes are the very short and easy to understand. thanks! ^_^

    • @SheetsNinja
      @SheetsNinja  8 месяцев назад +2

      I just recorded a part 2 for this video that includes save/update/retrieve/delete functionality. ruclips.net/video/hZSP1C1RWtM/видео.html

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

    Is there a way that multiple users can use the form simultaneously without interfering with each other?

    • @SheetsNinja
      @SheetsNinja  Месяц назад +2

      You can duplicate the form entry tab and have a separate tab for each user. Then in the script you can just use an or statement for the tab name.
      E.g.
      If ((tabName == 'Form 1' || tabName == 'Form 2' || tabName == 'Form 3') && val == 'Submit')

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

      Thank you so much. One last question, is there a way to make it able to submit without having all cells filled in?

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

      @@dcjohnson7615 Currently there is no restriction on cells having to be filled in to submit the form, so it will work as is.

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

    very short and efficient code thankyou

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

    hey i get the exception that my parameters for the getrange function are (number,number,number,null)

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

      It sounds like you might need to update the range where the script is getting the data. If it's saying the last one is null then the script is likely not getting any data. If your "FORM" tab looks different than the FORM tab in the template, you will want to modify the range where it's getting the data. That is this line:
      let data = form.getRange(5,5,form.getLastRow()-4,1).getValues().flat();
      This assumes that the data entry is starting in E5. If you are starting in B2, then you would need to modify to:
      let data = form.getRange(2,2,form.getLastRow()-1,1).getValues().flat();