Google Sheets | How To Send HTML Form Data To Google Sheets

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

КОМЕНТАРІ • 267

  • @incrediblelearned4981
    @incrediblelearned4981 10 місяців тому +12

    good video, funny part was 'html dada'

  • @PakistanZindabad-vi6xd
    @PakistanZindabad-vi6xd Рік тому +9

    🫡🫡🫡🫡
    This channel is so amazing. God bless all of U.
    M just started learning HTML as my first language to learn. And these easy tutorials are blessings for me. Boss don't know how to express my gratitude....
    Thanks very much!! 🥲🥲🥲
    Love and respect from Multan Pakistan 🇵🇰

  • @MirkoTorrisi92
    @MirkoTorrisi92 11 місяців тому +15

    Am I the only one who found IMPOSSIBLE to debug this stuff?? Really crazy.

  • @abhijithjinnu603
    @abhijithjinnu603 9 місяців тому +1

    Thank You! This works.

  • @WorldProTv
    @WorldProTv День тому +1

    Code not working wrote in googke sheet ... doPost error

    • @learning-axis
      @learning-axis  23 години тому

      visit this link to get source code : learning-axis.com/projects/google-sheets/

  • @CanaldoGui
    @CanaldoGui Рік тому +10

    Thank you so much for everything! God bless you and give back double for your contribution and sharing this solution with us! Grateful 🤝🏼

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

    That's great, thank You very much!!👍

  • @prof.alexsouza20
    @prof.alexsouza20 Рік тому +5

    Amazing! Congratulations! Thanks

  • @user-jxnc
    @user-jxnc Рік тому +2

    Thank you so much! with the source code, it's so easy and that works!

  • @abraham_o
    @abraham_o 7 місяців тому +3

    If I have 3 wishes from a genie, one of them will be to be able to write code like this without writing bugs or the need to press backspace... 🤤 I mean this is amazing.

  • @elcomentarista3477
    @elcomentarista3477 3 місяці тому

    Elegante y muy intuitivo el video felicidades... 🎊🎉

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

    11:30 I have a problem with this part of the code, I'll explain. I completely created the code and the js file, and also the html linked that file, copied the link from Google Sheet and also pasted it into the js code. but when I refresh the page and enter their information and hit send, nothing happens. Neither the data is added to the sheet nor does the message appear.

    • @learning-axis
      @learning-axis  11 місяців тому +1

      did you create account on smtpjs.

    • @learning-axis
      @learning-axis  11 місяців тому +1

      and also add two step verification to your gmail

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

      @@learning-axis The code works for me, the form data is complete, everything is excellent, but when I enter the code for the thank you message and click send, nothing happens, the data does not arrive and the message does not appear either.

    • @CamiloR1997
      @CamiloR1997 11 місяців тому +2

      @@learning-axis I already have my Hosting and I am doing it directly and my Gmail also has two-step verification. Do you have an email address where I can send you a short video so that you can help me?

    • @learning-axis
      @learning-axis  11 місяців тому

      @@CamiloR1997 yeah "contact@learning-axis.com"

  • @imsankarb
    @imsankarb Місяць тому +1

    Awsome. Thanks!

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

    this actually worked great! was a bit sus of the permissions shenanigans, but it's probably fine. thanks so much!

  • @TuấnNghĩaNguyễn-j3t
    @TuấnNghĩaNguyễn-j3t 5 місяців тому +2

    This video is so helpful.
    How to make it works with instead of ?

    • @learning-axis
      @learning-axis  5 місяців тому +1

      it will not work with

    • @zidanefirdaus5701
      @zidanefirdaus5701 4 місяці тому

      if you want it to work, you should have better understanding of javascript. it'll require something like this:
      const data = document.querySelector('span #id');
      unless you have learn JS it will be more difficult

  • @FikirCompany
    @FikirCompany Рік тому +4

    Thank you very much 👍❤

  • @Ana-tg2kc
    @Ana-tg2kc 4 місяці тому

    Amazing tutorial!
    Thank you very much!

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

    I don't know how it works, but it's what I was looking for so much

  • @eyasarqam3854
    @eyasarqam3854 4 місяці тому +1

    Thank you,
    Great JOB♥

  • @cashflowai506
    @cashflowai506 Рік тому +1

    good job brother

  • @AlvaroGarciaMS
    @AlvaroGarciaMS 2 місяці тому +2

    Funciona correctamente.. Muy Bueno. Works Fine!

  • @ghosttech5068
    @ghosttech5068 15 днів тому +1

    thank you :)

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

    Thankyou very much! i was struggling with the CORS error. This helped a lot.

  • @Loselegidosdecristo1
    @Loselegidosdecristo1 Рік тому

    Este vídeo vale oro, estuve buscando vídeo pero esta es la mejor,

  • @BinNguyenVlog
    @BinNguyenVlog Рік тому +1

    Amazing! Thanks

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

    I've copied your codes and done everything in your video. I get this error: "Script function not found: doGet"

    • @learning-axis
      @learning-axis  10 місяців тому

      do you add script in google sheets?

  • @NgedonTshel
    @NgedonTshel Рік тому +2

    how would be the app script if i add another sheet within the same google sheet

  • @ak_yt86
    @ak_yt86 Рік тому +2

    I really find this video bro, you made my day 😍, thanks a lot for you make this video for me 🙂

  • @jorgeflores762
    @jorgeflores762 Рік тому +2

    Gracias, nos salvaste la vida a mi grupo y a mi, eres el mejor.

  • @Instopedia_
    @Instopedia_ Рік тому +3

    Sir same method aan njn cheythr, but enik submit akumbo something error enna aa msg varunnu
    Enthaa cheyya

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

    Great video, and very well explained. Is there a way after having written the data to display only a correct sending message without displaying the address of the reference page in the pop up?
    Thank you for your response and your help.

    • @learning-axis
      @learning-axis  7 місяців тому

      Thank you for your feedback! Yes, you can modify the pop-up to display only a success message without showing the reference page address. You can achieve this by setting the pop-up content to your desired message. Here’s a quick example:
      alert('Data sent successfully!');

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

    Amazing! Thanks,sir..

  • @eldonmati
    @eldonmati 5 місяців тому

    This is genius work, thank you for sharing! Question, is there a way to make it send an email notification every time a new row is added to the spreadsheet?

    • @learning-axis
      @learning-axis  5 місяців тому

      You can integrate email by using smtpjs;
      I have created video on that,
      Video link: ua-cam.com/video/8JBl2Ug7P_E/v-deo.htmlsi=gkVXSV5JJ11ANUn-

  • @capurim
    @capurim Рік тому +4

    Thank you, it's a very nice tutorial but I have got an error in console :
    Access to fetch at 'my script URL' from origin 'my local URL' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
    Do you have a tip to resolve this bug?
    Thanks !!

  • @MohamedAmineZaaraui-ze8do
    @MohamedAmineZaaraui-ze8do 8 днів тому +2

    No music

  • @studysangam0.194
    @studysangam0.194 7 місяців тому

    Sir ka video bahut achha hai mai bahut paresan tha javascript code ke lekar magar aapki sahayta aur chatgpt ke maddt se clear ho gya
    Thanks sir❤❤

  • @ahmadchohan1012
    @ahmadchohan1012 Рік тому +1

    This video is so useful.

  • @lounes03b99
    @lounes03b99 3 місяці тому +1

    is your code { in google sheet } work with more input feild or just with 4 input feilds?? i used ur code but >> {"result":"error","error":{}}

    • @learning-axis
      @learning-axis  3 місяці тому

      yes, It can work just create new field in google sheet and follow the same steps as given in video

    • @learning-axis
      @learning-axis  3 місяці тому

      you can run this code on local server, and also create account on smtpjs

  • @PravinLonkar-n2x
    @PravinLonkar-n2x Місяць тому +1

    Hi, Thank you so much for your efforts. I am follwing same but getting CORS error. Could you please guide me how to resolve this error.
    from origin 'null' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

    • @learning-axis
      @learning-axis  Місяць тому

      Visit this link to see guide and get source code, this may help you. Thank you!
      learning-axis.com/projects/google-sheets/

  • @frankbonan-com
    @frankbonan-com 7 місяців тому +1

    Thanks beautiful project, how can I do to add a column with date and time added automatically to each submit?

    • @learning-axis
      @learning-axis  7 місяців тому

      You can fetch time in JavaScript, forward it into the new input tag's value, and then to google sheets.

  • @szyman4666
    @szyman4666 11 місяців тому

    Good video thanks a lot

  • @ngorecruitment-e4v
    @ngorecruitment-e4v 2 місяці тому +1

    Thank you it worked

  • @dev.antunes
    @dev.antunes 8 місяців тому

    Thanks a bunch! It worked well!

  • @mohdrehan418
    @mohdrehan418 4 місяці тому +1

    Shukriya bhai❤

  • @EternalUltimate
    @EternalUltimate 9 місяців тому

    you are the best

  • @jamal.salouni
    @jamal.salouni Рік тому +1

    thank you so much you give me exactly what i want you are amazing

  • @3PFTChannel
    @3PFTChannel Рік тому +1

    Thank you, It's awesome

  • @Norway3.0
    @Norway3.0 3 місяці тому +1

    Good 🙂

  • @zanport
    @zanport 10 місяців тому +2

    It don't work! Don't waste your time!!!

  • @WorldProTv
    @WorldProTv День тому +1

    is there anyone to help

    • @learning-axis
      @learning-axis  23 години тому

      visit this link to get source code : learning-axis.com/projects/google-sheets/

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

    How can we make the process faster.. it takes 5 secs.. Can we reduce it

  • @hiroyukinumaguchi1984
    @hiroyukinumaguchi1984 Рік тому +1

    Great!

  • @coolvibesreloaded7946
    @coolvibesreloaded7946 4 місяці тому +1

    My form submissions aren't going through? Please help

    • @learning-axis
      @learning-axis  4 місяці тому

      did you run it on local server?

    • @coolvibesreloaded7946
      @coolvibesreloaded7946 4 місяці тому

      @@learning-axis oh do you have to have a server to run it

    • @coolvibesreloaded7946
      @coolvibesreloaded7946 4 місяці тому

      @@learning-axis I've tested it on my website added the scripts to Google script put in the header the name of my sheet Music Requests still not working please help

    • @learning-axis
      @learning-axis  4 місяці тому

      @@coolvibesreloaded7946 yes

    • @learning-axis
      @learning-axis  4 місяці тому

      @@coolvibesreloaded7946 ok, did you create account on SMTPjs?

  • @rysh62
    @rysh62 Рік тому +1

    It gives me the "Result": "Success" "row 2" message but doesn't actually add onto the google sheets. What's the problem?

    • @learning-axis
      @learning-axis  Рік тому +3

      check the names of inputs.
      check the name of the sheet you put in the app script.

    • @rysh62
      @rysh62 Рік тому +1

      @@learning-axis cool i got it working! Thanks

    • @azharahmed7928
      @azharahmed7928 Рік тому

      facing same issue what was the issue?

    • @learning-axis
      @learning-axis  Рік тому +1

      @@azharahmed7928 check the names of inputs.
      check the name of the sheet you put in the app script.

  • @GeniusFranklyn
    @GeniusFranklyn 3 місяці тому +1

    it didn't work for me, says error instead of success

    • @learning-axis
      @learning-axis  3 місяці тому

      there main be error,
      do you run it on local server?

    • @GeniusFranklyn
      @GeniusFranklyn 3 місяці тому

      @@learning-axis yes

    • @learning-axis
      @learning-axis  3 місяці тому

      @@GeniusFranklyn ok, you also need to create account on smtpjs

  • @suketudeliwala7673
    @suketudeliwala7673 5 місяців тому

    Thanks.. I could make small application of change of address for a small NGO without domain and storage.. thank you so much.. god bless you...👃👃

  • @NICKVLOG17
    @NICKVLOG17 Рік тому

    Bhai kisme coding kar rhe ho

  • @vincentsominski9124
    @vincentsominski9124 10 місяців тому

    Hey. Really nice guide. I was wondering if it is possible to set each sheet to be for a single form and has like for ex. 3 forms and for each one will be one sheet. Do you have any idea if it is accessible?

    • @learning-axis
      @learning-axis  10 місяців тому

      you can do these things using node js

  • @jademarkfernandez1890
    @jademarkfernandez1890 10 місяців тому

    What app did you use to code? Im not very familiar sorry

  • @newtonm2162
    @newtonm2162 4 місяці тому +1

    hello my javascript code seems to not be working, but everything else is okay

    • @learning-axis
      @learning-axis  4 місяці тому

      It sounds like there might be a small issue in your JavaScript code.

  • @crinceebelempou6611
    @crinceebelempou6611 Рік тому +1

    Amazing

  • @BinNguyenVlog
    @BinNguyenVlog Рік тому

    Nice video

  • @phuclahoang9266
    @phuclahoang9266 Рік тому +1

    amazing

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

    greaaattt

  • @grommit89
    @grommit89 12 днів тому

    wow!!!! THANK YOU SO MUCH! I have been dabbling with HTML by editing a template from HTML5UP, the template has a form section, but I couldn't figure out for the longest time how to actually make it functional. I wasn;t sure if this would actually help, since I'm not building from scratch like in the video, but wow!! it worked right away :) incredible

    • @learning-axis
      @learning-axis  12 днів тому

      You're very welcome! I'm thrilled it worked for you and helped make your form functional-great job customizing the template! Keep experimenting and building!

  • @haseebtanvir3651
    @haseebtanvir3651 2 місяці тому

    what to do if we want to upload a file as well ? firstly i want to upload the file in drive and than save the file link in sheet

  • @k.harsha8792
    @k.harsha8792 11 місяців тому +1

    {"result":"error","error":{}}
    Iam getting this error after submitting the form can you please tell me where to correct

    • @learning-axis
      @learning-axis  11 місяців тому

      create account on smtpjs and add two step verification to you Gmail account

  • @Mickiewicz114
    @Mickiewicz114 Рік тому +1

    I did everything listed in this video but it didn't work. Why does it keep showing me error with empty {}

    • @learning-axis
      @learning-axis  Рік тому

      I also provided the code link in description please use that code

  • @faroukgribej5473
    @faroukgribej5473 Місяць тому +1

    thanks man

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

    Thank you!

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

    Thank you so much

  • @janosch_gnz
    @janosch_gnz 4 місяці тому

    what is the best method to secure the sheet and the webapp against attacks? For example, someone simply takes the endpoint and spams it with a script or someone simply takes the sheet ID and edits or looks at the file

    • @learning-axis
      @learning-axis  4 місяці тому

      Use authentication and authorization to protect endpoints, implement rate limiting to prevent spamming, and secure your API keys and sensitive data. For sheets, restrict access permissions and use tokens for API interactions.

  • @Karmaevents
    @Karmaevents Рік тому

    hey good job, can we do it for a multiple step form ?

  • @tinashesigauke1149
    @tinashesigauke1149 Рік тому +1

    i have 3 diffrent form on my html code how do i go about it

  • @alexapfatalimachi9224
    @alexapfatalimachi9224 Рік тому +1

    thank you very much :)

  • @muzamilzaman7463
    @muzamilzaman7463 Рік тому +1

    Can we get copy of this code ???

  • @beinfomaniac7182
    @beinfomaniac7182 Рік тому +3

    I am having cors error
    Does anyone know how to fix it

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

      You can just copypaste the code directly from his file. Mine isn't submitting any data to the google sheet (there is no error though).

  • @harsharavi2683
    @harsharavi2683 Рік тому

    Hi, everything works perfectly. I want to know how do I redirect to another link once the form is submitted? Thanks in advance

    • @learning-axis
      @learning-axis  Рік тому

      Replace (window. location.reload.) with (window. location.href="link";)

    • @antoniosh8130
      @antoniosh8130 Рік тому

      @@learning-axis Hi! When I'm trying to fetch it shows an error saying I'm missing some headers? And keeps saying failed to fetch

    • @learning-axis
      @learning-axis  Рік тому

      @@antoniosh8130 add twostep verification to you Gmail and create account on smtpjs

  • @khoatran1535
    @khoatran1535 Рік тому

    Hi, i have a list input (checkbox) and i want to multi choice values. How to do it

  • @SUBASH-i3z
    @SUBASH-i3z 4 місяці тому

    Bro it does not conduct user input after hosting how can i get user input after host public pls give me answer

  • @skillzorskillsson8228
    @skillzorskillsson8228 Рік тому +1

    You do know that font-family and font-size is inherited properties right? So why use it on the universal selector?

    • @learning-axis
      @learning-axis  Рік тому +2

      Some properties like font-size, and font-family are inherited from the parent when the element has no value specified in itself

    • @mk.bigboss122
      @mk.bigboss122 Рік тому

      ​@@learning-axis Hlo bro, I need a website, I will give money when the website complete. How to contact you 🤔 plz replay me

    • @learning-axis
      @learning-axis  Рік тому

      contact me on: blakdeer31@gmail.com

    • @learning-axis
      @learning-axis  Рік тому

      @@mk.bigboss122 sure

    • @clevermissfox
      @clevermissfox Рік тому

      They aren’t inherited by default on inputs. You have to set input {font: inherit}

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

    I have question why i do the same step with yours but i my contact data won't add into google sheet but it show sucess in row 2

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

    Can we embed this on my landing page

  • @dakshataramteke1838
    @dakshataramteke1838 3 місяці тому +1

    My data is not working I don't know what happen

    • @learning-axis
      @learning-axis  3 місяці тому

      there may be error in your code or script,
      follow all steps as described in the video

  • @SebastiánAntonioHuertaSoto
    @SebastiánAntonioHuertaSoto 5 місяців тому

    I implemented this in nextjs and in a separate project only from html and js and for some reason that I don't know it did not recognize the spreadsheet at any time, it does not allow me to record data. I'm sure I created the script on the same sheet and compared each line. I don't know what it was due to.

  • @asikahmad507
    @asikahmad507 5 місяців тому +1

    ❤❤❤❤❤

  • @KanchanChouhan-u2g
    @KanchanChouhan-u2g 10 місяців тому

    thank you so much!!

  • @Sriraam_2k3
    @Sriraam_2k3 11 місяців тому

    Anybody can explain why he code in that another page of Excel site program
    7:14

  • @harveywork-i8p
    @harveywork-i8p Рік тому

    how do you add a 'upload file', add an image from files and then receive and open it on google sheets?

    • @learning-axis
      @learning-axis  Рік тому +1

      we can't receive image file in google sheets

    • @v2al389
      @v2al389 Рік тому +1

      So where can I send the file to open it?

  • @kaleenislive1452
    @kaleenislive1452 Рік тому +1

    html dada >>>
    XD

  • @daddoesminecraft1980
    @daddoesminecraft1980 4 місяці тому

    @Learning Axis. Thank you, I followed everything and when I run it, it doesn't bring it over into my spreadsheet. I did use MY spreadsheet link and not yours. I'm not getting any errors, just not getting any results either.

    • @learning-axis
      @learning-axis  4 місяці тому

      are you using local server for this?

    • @daddoesminecraft1980
      @daddoesminecraft1980 4 місяці тому

      @@learning-axis no, it's live on my web server hosted thru godaddy.

  • @anhleuc1365
    @anhleuc1365 Рік тому

    Great guide. I have 2 words but want to dump data into the same sheet. from 1 dump data page1 . from 2 dump data page2 . I have tried but it's failed . help me

  • @SUBASH-i3z
    @SUBASH-i3z 4 місяці тому

    It only works on copy path website only but it doesn't work after hosting how can i solve it

  • @tony4512
    @tony4512 Рік тому +1

    Great video and thank you for sharing. First time playing with Google sites and I have everything up and running as in your video, I just can't figure out where I build and save the "Google Sheet.js" file and how it links to everything. Would you be able to elaborate a little more on this part (video marker 11:09)?

    • @learning-axis
      @learning-axis  Рік тому

      just create a file named as sheet.js in any folder

  • @binhduong607
    @binhduong607 2 місяці тому +1

    Thanks for your sharing but
    I have a bug :
    TypeError: Cannot read properties of null (reading 'getId')
    when I run the source code Code.gs on Google Apps script. Every one know this bug, please tell me the solution. Thanks you so much.

    • @learning-axis
      @learning-axis  2 місяці тому

      "It sounds like the code is trying to access an element that doesn’t exist. Make sure that the function `getId` is called on an object that is not `null`. Check if all necessary elements or objects are correctly defined before calling `getId`. If you’re fetching something from a Google service (e.g., Drive or Sheets), confirm that the file or sheet exists and the ID is correct. Let me know if this helps!"

    • @learning-axis
      @learning-axis  2 місяці тому

      and run it on local server

    • @binhduong607
      @binhduong607 2 місяці тому

      @@learning-axis Thank you so much 😻

    • @learning-axis
      @learning-axis  2 місяці тому

      @@binhduong607 you welcome

  • @gabrielkaqinari8299
    @gabrielkaqinari8299 Рік тому

    Why submit button is not working to send data materials to google sheets ? @Learning Axis

    • @learning-axis
      @learning-axis  Рік тому

      see code link in description, that may help you

  • @ibrohimbratan707
    @ibrohimbratan707 2 місяці тому +1

    didn't worked

    • @learning-axis
      @learning-axis  2 місяці тому

      create account on smtpjs, and run the code on local server

  • @ruddykielo82
    @ruddykielo82 Рік тому +1

    top!

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

    what is in the java script file. Everytime i submit my page it bring me to a "pretty print" app script page. How do i stop this?

  • @alexandremartins6130
    @alexandremartins6130 Рік тому +1

    Thanks bro!