Google Sheets - Userform

Sdílet
Vložit
  • čas přidán 14. 03. 2019
  • Learn how to create a user form in Google Sheets using Apps Script and Materialize CSS. In this tutorial we'll add UI elements like Sidebar & Dialog Boxes with a userform to our spreadsheet and pass information from our user interface to our worksheet.
    For more advanced user form check out Userform Level 2 Series:
    • Google Sheets Userform...

Komentáře • 278

  • @lpanebr
    @lpanebr Před 5 lety +5

    I watched your web app serie. Showing the HTML inside like this is also very nice! One thing I did differently was that I used HTML5 validation. Thank you!

  • @immanuelsuleiman7550
    @immanuelsuleiman7550 Před 4 lety +2

    I wasn't looking for this whatsoever but I'm glad that I found it
    Thank you so much you are an awesome person

  • @teacherwisleykid2088
    @teacherwisleykid2088 Před 3 lety +2

    You're such a good teacher! All the explanations are very clear! Thank you for this content.

  • @mehdibellatig8776
    @mehdibellatig8776 Před 5 lety +3

    This is incredible ! Thank you sooo much for sharing all this!

  • @andrezein
    @andrezein Před 3 lety +2

    You are a wonderful teacher! Loved it, and subscribed, as I am seriously getting hooked to this type of development.

  • @wirot125
    @wirot125 Před 4 lety

    Merry Christmast and A Happy New Year.
    Thank you very much for your worthly lessons.
    They give me the big inspiration!

  • @LAQUABI
    @LAQUABI Před 5 lety +2

    Thank you very much for this video. I did not know we could do this inside Google Sheets until now. If possible, could you please do more videos about Google Sheets using Apps Script and Materialize CSS like this one? There are so many other useful things I saw on Materialize CSS and it would be so much easier to understand with your explanations. You're really good at teaching! I'm looking forward to seeing more of your tutorials.

  • @tomatina21
    @tomatina21 Před 5 lety +21

    Thanks for another great tutorial!! How can you create an edit button to edit/update/delete a previous form entry ? Could you make a tutorial on this?

  • @watsonpinkaew3069
    @watsonpinkaew3069 Před 5 lety

    Hi, thanks a lot. Your clip is very easy to follow step by step. It's great! Thumbs up.

  • @jennylenesmith-drayton8677

    Very good video explaining the use of macros. I like the use of multiple examples to demonstrate

  • @santosahernandezmendoza7147

    With some modifications I managed to create more fields to add to my spreadsheet. Thank you, your tutorials are extraordinary. ☑

  • @Prince_Chaurasia
    @Prince_Chaurasia Před 4 lety +1

    Thank-you so much for great tutorial
    Please make part 2 with following thing
    1. Spreadsheet will come in read-only mode when cancel user form
    2. Spreadsheet will close when cancel user form
    3.Entry should be done only ten digit phone no in phone section

  • @mousaji
    @mousaji Před 5 lety

    Intresting thing executed in simple way. Hats off buddy..

  • @apolovzla_ccs
    @apolovzla_ccs Před 5 lety

    as always, great video dude... thank you

  • @Ahmedabushaban8
    @Ahmedabushaban8 Před 4 lety

    I used this at my work and managed to significantly expand it. I also managed to insert formulas into a cell from gs
    Thank you so much!!

    • @vnpsheqconsulting9449
      @vnpsheqconsulting9449 Před 4 lety +1

      I have tried this work more than 3 times and I get this error ws.appendRow([data.name,data.phone]); } please if possible share your sheet with me at victorkhube@gmail.com

    • @ThangHoang-ns6mq
      @ThangHoang-ns6mq Před 2 lety

      @@vnpsheqconsulting9449 have you solved it? I have the same error :(

  • @jorgemendoza1160
    @jorgemendoza1160 Před 5 lety

    This is completely usefull! If you have an online class in Udemy or in another website, let me know 🙌

  • @rezamirrahizar2523
    @rezamirrahizar2523 Před 3 lety +4

    Thank you for such a great tutorial. Just wanted to share if anyone is having trouble with the "google.script.run" not executing, it might have something to do with multiple accounts signed into Google (at least that was the case for me). So try signing out of the other accounts and it will work

    • @billmical8008
      @billmical8008 Před 3 lety +1

      Just spend the last two days dumbfounded on why my code was not working. Thank you so much for your comment!!!

    • @rafaom
      @rafaom Před 2 lety +1

      Thanks, thanks a lot!!!!

  • @asia22
    @asia22 Před 4 lety +1

    Litty, thank you so much 🔥🔥🔥🔥🔥

  • @ryanbrasher5684
    @ryanbrasher5684 Před 4 lety

    Also, excellent video, and thank you so much.

  • @shyammourya8317
    @shyammourya8317 Před 3 lety +1

    Thanks for this great and useful tutorial. This video is really useful to me.

  • @matthewdevenecia7898
    @matthewdevenecia7898 Před 3 lety +1

    Thanks! This helps a lot!

  • @racheldelgado5541
    @racheldelgado5541 Před 4 lety

    Thank you so much... I learned a lot :)

  • @pichit.raetai
    @pichit.raetai Před 5 lety

    thank you very much. i see ur all video

  • @AntonioSantos-ve6zv
    @AntonioSantos-ve6zv Před 3 lety

    Awesome content! Thanks a lot!

  • @deFunkyMofo
    @deFunkyMofo Před 4 lety

    Excellent work young man ...

  • @Zawodowieec
    @Zawodowieec Před 4 lety

    Great tutorial, thank you pal ;)

  • @orlandsalas7346
    @orlandsalas7346 Před 4 lety

    Awesome Tutorial

  • @lecaonguyen79
    @lecaonguyen79 Před 5 lety

    Thank You!

  • @julia.vasilieva
    @julia.vasilieva Před 5 lety

    Thanks! Great tutorial!! I have a question: how to align a button in the center?

  • @jeffreypickering7702
    @jeffreypickering7702 Před 4 lety

    Awesome vid, thanks. Is there a way to make this work offline? i.e. so the UI is talking directly to the sheet? Or does the sheet always need to be online to work because gs runs server side?

  • @hafizarman3784
    @hafizarman3784 Před 5 lety

    Very fantastic video
    Please explain us about duplicate value
    How to stop duplicate value via userform in google sheets

  • @MsBoolo
    @MsBoolo Před 2 lety

    Awesome 👌. Great tutorials 👍

  • @IntrepidFox
    @IntrepidFox Před 4 lety

    Many thanks for this!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      Glad you like it. Check out the new level 2 series czcams.com/play/PLv9Pf9aNgemuzTNWeHd8HziGVNzSlWACh.html

  • @burhansrengat
    @burhansrengat Před 3 lety +1

    Thank you !!

  • @geniewu390
    @geniewu390 Před 5 lety

    The video is so helpful! Have you thought about doing a tutorial on combing google form instead of creating your own form?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 5 lety

      I do have Google Forms videos. Web App is much more flexible but you should use whatever works for you.

  • @66Komodo
    @66Komodo Před 5 lety

    very useful videos.

  • @sofees
    @sofees Před rokem

    you are actually awesome

  • @proferodiana
    @proferodiana Před 5 lety

    Wow ! Thanks !

  • @christopherb.223
    @christopherb.223 Před 4 lety

    ¡Amazing Work!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      Thanks a lot! Check out the new series czcams.com/play/PLv9Pf9aNgemuzTNWeHd8HziGVNzSlWACh.html

  • @orzel7690
    @orzel7690 Před 5 lety +1

    Is a way to read data to this userform, than edit and add again to sheet ?

  • @renzonicolini7062
    @renzonicolini7062 Před 5 lety +1

    Hello my friend, I have a web site and i need to put a form inside the web site y colect all data from clients in google sheets. How can I do that?

  • @dewaynewest7756
    @dewaynewest7756 Před 5 lety

    Can we add multiple checkboxes and get the value of each checked box???

  • @DominikBarchanski
    @DominikBarchanski Před 4 lety +1

    i have a bit problem with this when i want to execute function google.script.run.function(); it don't do any things what should i do

  • @downhillindad7689
    @downhillindad7689 Před 3 lety +1

    This is a fantastic tutorial! Thank you for taking the time to do this. However, I am struggling with getting the button to do anything. Am I the only one who can't get the submit button to work? I have paired it down all the way to simply getting a message box to pop up indicating that I'm in the function that the button activates, but it's simply dead. It's not going into the function. No errors, just nothing happens. Any help would be great

  • @tamjinhongmonkeystudio6120

    Great tutorial!! i followed all the step shown in the tutorial. But the data in the form din't update in my sheet. i can't figured out why. i have go through all the spelling and brackets but still fail to update the data on my sheet. Please help

  • @dr.bhavinmodi6935
    @dr.bhavinmodi6935 Před 3 lety

    Very nice!
    Got to learn something new.
    My Question: How can I creat patient records sheet?

  • @edwinalfonsomonteromontero5843

    Hola puedes hacer un ejemplo donde se consulte un spreadsheets por medio del form, es decir, dado un identificador buscar y mostrar el nombre asociado al identificador almacenado en una tabla en sheets. Gracias y muy buen vídeo.

  • @KartikOm
    @KartikOm Před 4 lety

    Hey, That very nice tutorial.
    Can the form converted into mobile application

  • @trijayagroup7857
    @trijayagroup7857 Před 4 lety

    hello, thank you for the video, very nice explanation and helpful....
    what about if i want to validate some things, like if the userform input any same telephone number, then the msg box will pop up and shows that "duplicate phone number"?

  • @AlbanoLaTorella
    @AlbanoLaTorella Před 4 lety +1

    fantastic guide, I'm a beginner, is it easy to use the same form to read and modify the data entered? if yes who can tell me how

  • @canamiecan2525
    @canamiecan2525 Před 5 lety

    How to add in user form print button. I hope you can help me.

  • @vnpsheqconsulting9449
    @vnpsheqconsulting9449 Před 4 lety +6

    I always get this TypeError: Cannot read property "name" from undefined on data.name why?

  • @sioetan9492
    @sioetan9492 Před 4 lety

    Thanks for another great tutorial , please help me...
    how to create a new name in a particular table, for example in the H section?...... thanks for the answer

  • @mictralif7515
    @mictralif7515 Před 4 lety

    this adds on the next blank rows... some parts of my rows has formulas.. how do i enter data on blank cells on a row

  • @MrYoubetube22
    @MrYoubetube22 Před 5 lety

    Hello,
    I try to copy the complete script and does't work.
    when I full feel with name and phone after I click the name and phone number are not save i the sheets.
    tell please what I shut do?

  • @ilayarajaramasamy1263
    @ilayarajaramasamy1263 Před 5 lety +1

    Will it work on android phone also?

  • @elabinnovations
    @elabinnovations Před 4 lety

    Is this support the Google sheet Android app?

  • @Syzyf37
    @Syzyf37 Před 4 lety +1

    I have a question. How do you save "name" and "phone" data in a spreadsheet in any selected columns, for example in columns C and E?

  • @GustavoMOrralaPonce
    @GustavoMOrralaPonce Před 4 lety +1

    Excelente

  • @vegasilkit
    @vegasilkit Před 3 lety

    How could you do an edit form which would display data from the row that you click in? Certain parts of the data would not be editable i.e. the persons iD number and name. Have you already addressed this somewhere? This was a great video!

  • @arnavrajiv4070
    @arnavrajiv4070 Před 3 lety +2

    I've been following along the video and "google.script.run.appendData(data);" doesn't work, I have faced a similar problem in another tutorial as well! Please help

    • @stocker6315
      @stocker6315 Před 3 lety

      Same here. Have you figured it out yet?

  • @Tripleit1g4
    @Tripleit1g4 Před 5 lety

    How to create search engine for those table?

  • @venkatpavankumar1945
    @venkatpavankumar1945 Před 4 lety

    how to auto adjust the userform width and height automatically based on the content

  • @shabnamnaseemahmed.5072

    I have the following error while running the script.
    Exception: Cannot call SpreadsheetApp.getUi() from this context. (line 5, file "Code")Dismiss

  • @nikluz3807
    @nikluz3807 Před 3 lety

    is there a way to pass data from the google sheet into the html form?

  • @crazyworld7485
    @crazyworld7485 Před 4 lety

    Great tutorial but when i try on mobile such Chrome or Google sheet app the script not working. Please help how to script work on mobile.

  • @venkatpavankumar1945
    @venkatpavankumar1945 Před 4 lety

    Hello sir how to increase or decrease the width of the user form.

  • @materialuoat7860
    @materialuoat7860 Před 4 lety +3

    Hi, i'm amazed with the thing you doing with these videos, thanks for every video you upload!. With this i have a problem in "google.script.run." never run in the way you show, but i look over there in forums, and nothing, until i decide delete of minified JavaScript code, and they works, but of course, the animation of button an text stops, so i decided to put again but after the script you write, and works perfectly, i decided put here if anyone else have the same problem.
    i ask you to make some video with explanation of Class Blob in Apps Script, and if its possible wok with that ina "showSidebar(html)", i try to read in other foums an in the same google documentation, but nothing, and you way of explain its very useful to absolute beginers, like me. Thanks again

    • @sabrananda
      @sabrananda Před 3 lety

      i delete minified javascript but still not work,, anyone with same problem? i use G-Suite for education account, is that an issue?

    • @sabrananda
      @sabrananda Před 3 lety

      i try again with my regular @gmail.com account, it's work!
      anyone can do this on G-Suite For Education account? cause my company use G-Suite for education to work in shared drive

  • @somethingiswrong6362
    @somethingiswrong6362 Před 3 lety +1

    Awesome

  • @rainraindontgoaway4881

    Is there a way to prevent duplicate entries?

  • @ivanyumul1542
    @ivanyumul1542 Před 4 lety

    how can you trigger the form without running the script?

  • @DouglasMelloBarbosa
    @DouglasMelloBarbosa Před 4 lety

    Obrigado!

  • @ynneky
    @ynneky Před 4 lety +1

    Thanks for the video! How can I create a dropdown list within the input box?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety +1

      Please watch my web app series.

    • @ynneky
      @ynneky Před 4 lety +1

      @@ExcelGoogleSheets Thanks alot! I have managed to create it! Btw, how do I create a button to clear all the input fields?

  • @ManojGuptahome
    @ManojGuptahome Před 4 lety

    Thanks!! I am learning a lot from your tutorials. However, your web app series has some problem.
    My and are showing in red color. I have checked all subsections of the HTML code are properly formatted ad closed. Why is this in red? --It works though.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety +2

      With all due respect, there are no problems in the series. When you work with code, you have to be extremely detail oriented. One comma, semicolon, quote in the wrong place will throw everything off. Just because your HTML brackets are closed it does not mean you don't have some JavaScript mistakes or simply an extra div or attribute syntax error.

  • @davidps
    @davidps Před 3 lety +1

    so cool

  • @wellwashworks6177
    @wellwashworks6177 Před 5 lety

    Cannot call SpreadsheetApp.getUi() from this context. (line 12, file "Code")Dismiss
    only this error show

    • @SuperIdeas_org
      @SuperIdeas_org Před 4 lety

      Be sure to open the script editor from inside the spreadsheet: prnt.sc/r4jlwv

  • @indoremechanics
    @indoremechanics Před 4 lety +1

    TypeError: Cannot read property 'name' of undefined (line 48, file "Menus")Dismiss
    what can i doo

  • @evannerosedaganio8708
    @evannerosedaganio8708 Před 2 lety

    help i need a function that popup the userform when its reload that i dont need to run it over the Tools/Script

  • @holycrypto6369
    @holycrypto6369 Před 5 lety

    possible to provide the code for us to use too? thanks!

  • @hieucon184
    @hieucon184 Před 5 lety

    Please how to login user html to google sheet

  • @vladimirshisterov7978
    @vladimirshisterov7978 Před 5 lety

    Hi! Very useful videos on your channel.
    I tried to write a script exactly according to your video, but the data from the form does not load the sheet.
    What could be the reason?

    • @kamilingo
      @kamilingo Před 3 lety

      I am having the same problem.

  • @mictralif7515
    @mictralif7515 Před 4 lety

    @Learn Google Spreadsheets HI! thank you for helping those who wants to learn.
    if the form was close how can you re-open it? can there be a shortcut on the sheet? or is there a way so that use can not close the form? or can the form show up when i open the form?

  • @perepausancho
    @perepausancho Před rokem

    ¡Gracias!

  • @davidqicatabua5296
    @davidqicatabua5296 Před 5 lety

    Great channel content is great and another useful video.
    However I did try the same steps described in the video and the inputs are not showing in the sheet. What could be the cause of this?

    • @potato_weeb8274
      @potato_weeb8274 Před 5 lety

      there could've been an error
      possible error:
      function addRecord(){
      var data = {
      name: nameBox.value,
      phone: phoneBox.value
      };
      I typed in 'name = nameBox.value, '
      I fixed it and it worked

  • @sheyanran508
    @sheyanran508 Před 4 lety

    I followed everything, however, it does not work. The data I am inputting was not added.

  • @avhvsmatej
    @avhvsmatej Před 4 lety +1

    in 9:17 shows "TypeError: template.evaluate is not a function" how to solve that

    • @0emile
      @0emile Před 3 lety

      ensure that there are ()

  • @duckdodgers2843
    @duckdodgers2843 Před 4 lety

    anyone had success replicating this via a Google Document? Unfortunately, I can't seem to pass the collected HTML object / data values to app script so I can then change some values on my Google Doc via the replace text method. Any help or a link to a working document someone is willing to share so I can see their code would be greatly appreciated.

  • @ravemanlex
    @ravemanlex Před 4 lety

    Hi. First and foremost I would like to thank you for the veery helpful instructional videos. I have been able to replicate most of your tutorials however I'm trying to establish dependent drop down boxes on the UI. I'm stumped on how I can get the 2nd drop down box to update its values based on the input of the first box. Any video that can help with this? It's with the HTML side that I'm having trouble in getting to update.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      If you're having issues with HTML side, then I really recommend watching the videos in this playlist czcams.com/play/PLv9Pf9aNgemuYdHkUa_knXKMYZcW9WEaf.html
      Next week there will be an example of a dependent dropdown in this playlist
      czcams.com/play/PLv9Pf9aNgemuzTNWeHd8HziGVNzSlWACh.html

  • @ryanbrasher5684
    @ryanbrasher5684 Před 4 lety

    I have a question- how do you change the icons that are currently displayed next to the text input fields in the form?

    • @ryanbrasher5684
      @ryanbrasher5684 Před 4 lety

      I am halfway to the answer: account_circle within the div for that button.
      my question is, where do I access the list of other prefix icons available?

    • @ryanbrasher5684
      @ryanbrasher5684 Před 4 lety +1

      For anyone else with this question- icons list is here: material.io/resources/icons/?style=baseline .
      So I would change the icon by changing account_circle to thumb_up in
      thumb_up

  • @altamis4410
    @altamis4410 Před 3 lety

    yes very nice, but i think it would be nice to add the log data into another spreadsheet, not the current one, anyways is someone have the sheet link will face with the userform too ?

  • @axies-learningthatmatters5387

    I have an existing problem. How to apply onOpen(e) here. And is it possible that the modal will not be closed?

  • @GeraSanz
    @GeraSanz Před 4 lety

    is there any way to change the sidebar width? i've tryed a few things without any result! and it's getting me crazy ! please HELP!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      you can do HtmlService.createHtmlOutputFromFile('Page').setWidth(300);
      however, with sidebat I think there is minimum and maximum width, so it can only be changed a little. For more control use Dialog.

  • @SinghSumi01
    @SinghSumi01 Před 4 lety +3

    This is not working for me. I write the script exactly according to your video, but the data from the form does not load the sheet. Please help.

  • @LASONORALIMITE
    @LASONORALIMITE Před 3 lety

    how login app to google sites with google apps script. please help me . thanks. sorrry for my english. i speak spanish

  • @Sachin-sw6om
    @Sachin-sw6om Před rokem

    Hello, I have a add on installed in google sheet (when I fill the data in google sheet it triggers a data to add on app) . The problem is when I get the data in google sheet from google forms, it is not triggering data to add on . Pls give me solution. I have tried the spreadsheet.flush option, it’s not working

  • @singhalmonica
    @singhalmonica Před 3 lety

    Thanks sir, pls help to prevent editing in entered data

  • @lottoalgoritmos3895
    @lottoalgoritmos3895 Před 4 lety

    Cannot call SpreadsheetApp.getUi() from this context. (line 5, file "Code" .....Do you Know what Does mean??? Help me Up Please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    • @lottoalgoritmos3895
      @lottoalgoritmos3895 Před 4 lety

      Never Mine I Solved Open Google Drive and then the spreadsheet tools and appscript

  • @pankajjoshi8292
    @pankajjoshi8292 Před 4 lety

    Can i implement them in Google sheet ? Can you pls tell how to create Login id Password form , using Google sheet which i can use google sheet. thaking you lots

  • @bartolomeopontin
    @bartolomeopontin Před 4 lety

    Hello, I just tried your code and I had to deactivate the new App Script runtime for chrome V8 for it to work. The issue occured when calling the appenData function. It failed to execute. Do you know what should be changed in the code for this to work in the new environment?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      What's the error message?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      I just took the time to write the exact code in this tutorial in V8 engine and it works fine.
      Maybe try to move document.getElementById("btn").addEventListener("click",addRecord);
      below addRecord function, instead of having it above.
      Just to be clear, I didn't do this change, I just wrote the same exact code and it worked fine.

    • @bartolomeopontin
      @bartolomeopontin Před 4 lety

      Learn Google Spreadsheets There is no error message. When I go in the execution log it just mentions that appendData failed to execute. I will try to do what you said and see if it works. Thank you for your answer

  • @justinpatriarca1973
    @justinpatriarca1973 Před 4 lety

    I have tried to adapt this script to my project but i just can't get the submit button to work or the append function to collect the data. I've gone through all the suggestions below but nothing is working, wondering if you could provide some advice. Each function runs without errors, just no data is populated.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  Před 4 lety

      98% of the time spelling error or brackets missing in the HTML file.

    • @justinpatriarca1973
      @justinpatriarca1973 Před 4 lety

      @@ExcelGoogleSheets Thank you, found the problem bracket after a little sleep.

    • @theclow1988
      @theclow1988 Před 3 lety

      @@ExcelGoogleSheets I have checked everything and I cant get trhe button to work help please!!