How to Submit a HTML Form to Google Sheet Using Apps Script

  Рет қаралды 29,046

Self Imagination

Self Imagination

Күн бұрын

How to Submit a HTML Form to Google Sheet Using Apps Script
is Video me HTML Form ke data ko Apps Script ka upyog kar Google Sheet par store kiya hain.
00:00:00 Create HTML Form
03:44:20 Apps Script Coding
15:11:20 Deploy Apps Script
16:19:11 Set HTML Form Action
17:07:03 Submit form (Testing)
Read More
selfimaginatio...
#hindi #appscript #googlesheets #submitted

Пікірлер: 110
@UpendraLele
@UpendraLele 10 ай бұрын
Very useful video! Thanks a lot!!
@selfimagination
@selfimagination 10 ай бұрын
Welcome
@shasalita460
@shasalita460 Ай бұрын
This is awesome! Thank you. However is there a way you can put a sequence on each video so we'll know which one to do first? I tried following your videos, sadly, my form only works in this sequence Invoice generation with bootstrap Add /Delete button in jquery Calculation Invoice amt after that i tried Generate invoice number, Dropdown, submit an HTML to google app sheet but now it doesn't work. Please let us know which one to go first in the series.
@maverick.gaurav
@maverick.gaurav Жыл бұрын
Badhiya video!
@selfimagination
@selfimagination Жыл бұрын
Dhanyawad.
@globalwastesolution2055
@globalwastesolution2055 6 ай бұрын
Best n perfect ❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤❤
@selfimagination
@selfimagination 6 ай бұрын
Thanks for Watching.
@dimitrisvoudouris
@dimitrisvoudouris Жыл бұрын
very nice work. thank you
@selfimagination
@selfimagination Жыл бұрын
Thank you too!
@reimversolutions5933
@reimversolutions5933 Жыл бұрын
Well done you explained everything in detail very politely I love your teaching style, Sir can you create a video how to create upload file option in same sheet
@selfimagination
@selfimagination Жыл бұрын
Thank you, Soon I will also upload video related to Image upload.
@selfimagination
@selfimagination Жыл бұрын
Recently, the video of uploading image on google sheet has been published on this channel.
@coolrasel87
@coolrasel87 6 ай бұрын
thanks bro, good tutorial. how to skip fast blank row in description part when submit ? can you publish the modified code
@selfimagination
@selfimagination 6 ай бұрын
Welcome, Thanks for Watching. Put some logic regarding index on appendRow
@user-ix4ky6vi8r
@user-ix4ky6vi8r 8 ай бұрын
Hello bro if you give vedio as number wise 1,2,3 according to work it's better.
@gjithckaal
@gjithckaal Жыл бұрын
Thank you very much for your videos ! Please can you tell me how to display data from html to Spreadsheet if there is a Checkbox input type in the HTML page ?
@athiwatmangkorn4062
@athiwatmangkorn4062 11 ай бұрын
I did the same instructions in the explanation but it shows Error TypeError: Cannot read properties of undefined (reading 'parameters') @doPost How to fix it.?
@selfimagination
@selfimagination 11 ай бұрын
Thanks for Watching. 1. When we receive multiple values then they come in "parameters" and single row values come in "parameter", 2. It is necessary to give the "name" of the input on the form you created, it does not get the value from the "id". There are two main reasons for this error to occur.
@lomandaspal3204
@lomandaspal3204 10 ай бұрын
Same problem
@Adrian-zc8gk
@Adrian-zc8gk 7 ай бұрын
Hi, thanks for the video. Is there a way to not open any output page when submitting the form?
@selfimagination
@selfimagination 7 ай бұрын
Welcome, Thanks for watching, this is absolutely a solution, now we have posted the data using action from form tag, instead you can post the form using jQuery so that you do not get any output page displayed. only page will be displayed.
@monicadeodhar
@monicadeodhar 8 ай бұрын
Thank you. After writing data to excel, the page displays error that cannot access. What could be the reason?
@selfimagination
@selfimagination 8 ай бұрын
Welcome, While Deploying the web API you have created, we have to give access rights, if you have not given rights on it then such issues may arise.
@monicadeodhar
@monicadeodhar 8 ай бұрын
@@selfimagination Thanks. have given rights and even as a prevention shared the sheet as "editor". Happens in both firefox and chrome. Will make fresh project and check. Thanks but for the great explanation !!!
@selfimagination
@selfimagination 8 ай бұрын
Welcome, you will check, still let me know if any issue arises.
@nabinprakashrai
@nabinprakashrai Жыл бұрын
is it possible to get data in google sheet rowwise? instead of gap. example order no2 can have two items order. data should be in google shhet in row1 and row 2.
@selfimagination
@selfimagination Жыл бұрын
Thank you for watching the video, you can get row wise data from google sheet, here you have to write separate code to manage the gap, it is even easier to get row wise data, once you complete my Watch the invoice series playlist, many of your doubts will be cleared.
@nabinprakashrai
@nabinprakashrai Жыл бұрын
how to make it mobile friendly? in mobile, item description is not showing fully.
@yousuftech22
@yousuftech22 Жыл бұрын
Hello sir how are you. Invoice data submit with app script to google sheet
@selfimagination
@selfimagination Жыл бұрын
I'm fine, This is the video related to what you have commented on me.
@AmanKumar-cn5yc
@AmanKumar-cn5yc 8 ай бұрын
Page Jitna scroll kre utna hi load ho please make this topic video jQuery se aur php se
@selfimagination
@selfimagination 8 ай бұрын
Video Published: इस Topic पर वीडियो पब्लिश हो गया हैं, केवल आप Apps Script API की जगह Ajax का उपयोग कर लीजिएगा
@Tamizh_Paiyan
@Tamizh_Paiyan Жыл бұрын
how to add total amount to google sheet
@FANITUBE-kn8ii
@FANITUBE-kn8ii 6 ай бұрын
Scndeep sir meri html file desktop pe hai Ouske leyay submission script kaisay set karoon ??
@selfimagination
@selfimagination 6 ай бұрын
Thanks for Watching. Yah Example Desktop wali index.html file ke liye hain , form action par ham apps script ki link denge or Apps Scrtip me doPost function me Values ko Receive kar lenge.
@SafiyullaMona
@SafiyullaMona Жыл бұрын
How to set specific time to dont want to submit data. (Example: i don't need to submit data from 10am to 10pm) using App script. How change app script code. Plz help me
@selfimagination
@selfimagination Жыл бұрын
You have to apply validations, you can apply it with JavaScript / jQuery as well as with apps script, in the 3rd video that will be published, you can probably get help for this type of validation.
@SafiyullaMona
@SafiyullaMona Жыл бұрын
@@selfimagination Thank you
@SafiyullaMona
@SafiyullaMona Жыл бұрын
@@selfimagination can you make a code for me in the google sheet app script
@Alvids222
@Alvids222 Ай бұрын
Showing type error in let inv = e.parameters
@Tamizh_Paiyan
@Tamizh_Paiyan Жыл бұрын
Sir im getting this error..please help me to solveTypeError: Cannot read properties of null (reading 'appendRow') (line 9, file "Code")
@selfimagination
@selfimagination Жыл бұрын
There can be two reasons for the issue on line number 9 1. In the InvSheet that you have taken, it is not appending because the name of the sheet is not correct, for this you can try appending something manually on the sheet once. 2. There is a spelling mistake in the e.parameters that you have passed here, due to which there is a difference between the name used in your html and here.
@Tamizh_Paiyan
@Tamizh_Paiyan Жыл бұрын
Thanks for your prompt reply@@selfimagination
@Tamizh_Paiyan
@Tamizh_Paiyan Жыл бұрын
@@selfimagination I tried all still I'm getting this error...
@selfimagination
@selfimagination Жыл бұрын
By commenting all other code, check only by giving manual value in appendRow, then you will know whether there is issue in appendRow or somewhere else.
@yousuftech22
@yousuftech22 Жыл бұрын
Nice tutorial sir how to google app script include HTML file join possible?
@selfimagination
@selfimagination Жыл бұрын
Thank You, Will make a video on this topic soon.
@yousuftech22
@yousuftech22 Жыл бұрын
@@selfimagination tanks sir I'm waiting for your video
@samay-jq4ds
@samay-jq4ds 5 ай бұрын
e.parameters (Type error: Cannot read properties of undefined (reading 'parameters')
@selfimagination
@selfimagination 5 ай бұрын
Thanks for Watching. 1. What we wrote in the input name in HTML and the variables taken here should be the same. 2. Instead of all the variables in one line, you can write them in different lines and then look at the line number on the error console to know which variable is taken wrong.
@iqbalmohammad786
@iqbalmohammad786 Жыл бұрын
Google sheet Web app LOGIN user WISE data open And Read Update then export pdf . Plz make video and share code.
@bhaveshpopat6973
@bhaveshpopat6973 10 ай бұрын
I Got Error Cannot read properties of undefined (reading 'forEach') headers are get in google sheet but details are not
@ErikCuesta
@ErikCuesta Ай бұрын
I'd the same problem, nice tutorial
@VishalKaushal-og8he
@VishalKaushal-og8he Жыл бұрын
Hlo sir my inputs is not saving in google sheet only the return value is shown on screen after submitting the form and doesn't show any error
@selfimagination
@selfimagination Жыл бұрын
1. Check the name attribute of the input tag once 2. In doPost, console.log(e.parameters); see return
@organickrishi5679
@organickrishi5679 7 ай бұрын
How to google sheet data into dynamic html form
@selfimagination
@selfimagination 7 ай бұрын
Thanks for Watching, There is a video on this channel whose title is "How to Display Google Sheets Data in a Table and Show Details on an HTML Page", you can watch it once, apart from this there are some more videos which you can watch.
@SafiyullaMona
@SafiyullaMona Жыл бұрын
How to increase the size of "invoice submitted" text in result screen 😊
@selfimagination
@selfimagination Жыл бұрын
Video Already Published
@atiyhmaprok4346
@atiyhmaprok4346 Жыл бұрын
I did the same instructions in the explanation but it shows Error TypeError: Cannot read properties of undefined (reading 'parameters')
@selfimagination
@selfimagination Жыл бұрын
Thanks for watching. What is set in the name attribute of the inputs in the html form, the same is used in e.parameters in doPost of Apps Script. That's why you check HTML input name and inv parameters once.
@atiyhmaprok4346
@atiyhmaprok4346 Жыл бұрын
@@selfimagination Script function not found: doGet
@doshi_kevin
@doshi_kevin Жыл бұрын
getting same error @@atiyhmaprok4346
@haasan2336
@haasan2336 6 ай бұрын
Bro how to solve that which you discusses @ time 19:25
@selfimagination
@selfimagination 6 ай бұрын
Thanks for Watching. There is a link to the source code in the description of this video, open it, you will find the code of Apps Script in it. You will see in that code. You will get a logic with (i > 0), you can understand from there and implement it in your project.
@ahmedfizah7408
@ahmedfizah7408 Жыл бұрын
Why is the index file not kept in appscript in google?
@selfimagination
@selfimagination Жыл бұрын
The index file can also be kept in the file of the Apps Script. In this video that I have made, I have just connected the Google Sheet with the index file of the local host. In the coming next video the Html file will be created in the Apps Script file section. Thank you
@ahmedfizah7408
@ahmedfizah7408 Жыл бұрын
@@selfimagination when will the next vedio come?
@ahmedfizah7408
@ahmedfizah7408 Жыл бұрын
If we want to submit the table data to the google sheet instead of post method can we use the following code? Please advise further function pasteRequisicaoHtml(table) { var ss = SpreadsheetApp.openById("1J_7GZ1C7pgHuRsdfsdfsdfsdf"); var sheet = ss.getSheetByName('Sheet5'); // Modified var lastRow = sheet.getLastRow(); // Added var req = { requests: [{ pasteData: { html: true, data: table, coordinate: { sheetId: sheet.getSheetId(), // Modified rowIndex: lastRow, // Modified columnIndex: 0, }, }, }, ], }; Sheets.Spreadsheets.batchUpdate(req, ss.getId()); sheet.deleteRow(lastRow + 1); // Added }
@gsrathore97x
@gsrathore97x Жыл бұрын
Sara code files Google app scripts me hi rhe to best hai
@bosemultimedia3967
@bosemultimedia3967 6 ай бұрын
TypeError: Cannot read properties of undefined (reading '0') (line 9, file "Code")
@selfimagination
@selfimagination 6 ай бұрын
Thanks for Watching. Check all the variables taken on the line number on which the error is occurring. They are not getting the value. The names of the variables input in the HTML and the variables taken in the apps script should be the same.
@parikannappan1580
@parikannappan1580 11 ай бұрын
I want to do the reverse , spreedsheet to HTML
@selfimagination
@selfimagination 11 ай бұрын
Thanks for Watching, There is a video on this channel in which you can show data from Google Sheet to HTML, the title of which is "How to Pull Data From Google Sheet To HTML Table Using Apps Script"
@LiTerminal
@LiTerminal 11 ай бұрын
Same code ko Mysql main kaise insert kare?
@selfimagination
@selfimagination 11 ай бұрын
बहुत ही जल्द HTML to MySQL Related Video Publish होने वाला हैं ।
@SithuChill
@SithuChill Жыл бұрын
Good Job , I got error {"error":"Bad data format"} Can help me pls
@selfimagination
@selfimagination Жыл бұрын
Thank you, Check once the data that is being sent by post, if multiple rows are not sent then try using e.parameter instead of e.parameters.
@SithuChill
@SithuChill Жыл бұрын
@@selfimagination Thanks for quick reply I do all of them in google apps script still I got error { Failed to load resource: the server responded with a status of 400 ()}
@selfimagination
@selfimagination Жыл бұрын
When you deploy, at that time an option appears, which access you will see once by selecting "Anyone" option, maybe the problem will be solved.
@SithuChill
@SithuChill Жыл бұрын
@@selfimagination your html file in local host or with google sheet, I create all of them with google sheet, I can't find what's wrong
@SithuChill
@SithuChill Жыл бұрын
I send email pls check
@bosemultimedia3967
@bosemultimedia3967 6 ай бұрын
How to Show Curd Data Table??
@selfimagination
@selfimagination 6 ай бұрын
Thanks for Watching. Watch this video for Crud Table "2. CRUD : Dynamic Google Sheet Data to HTML Table using Apps Script"
@DeepakDas-i7t
@DeepakDas-i7t Жыл бұрын
Thanks Sir, form submit karne ke bad Forbidden error 403 aa rha hai. please guide.
@selfimagination
@selfimagination Жыл бұрын
Welcome, 1. एक बार सभी लिंक चेक कर लीजिए 2. आपने जो Project Deploy किया उसमे एक Permission पूछता हैं Anyone ओर only me, वहा पर आप Anyone सिलेक्ट करके देखिएगा । फिर भी नहीं हो तो एक बार Chrome पर incognito Mode पर Execute कीजिएगा ।
@atharvakulkarni7925
@atharvakulkarni7925 Жыл бұрын
sir it gives me a error the error is :cannot read properties of null
@selfimagination
@selfimagination Жыл бұрын
Where the error is coming, the line number will also be coming there. send me the code on which line is error
@RaviSingh-ro2iu
@RaviSingh-ro2iu 6 ай бұрын
sir data submit kar rahe to problem aa rhai hai
@selfimagination
@selfimagination 6 ай бұрын
Console par Error Message aa raha hoga vah mujhe bhej dijiye
@nghitran3029
@nghitran3029 Жыл бұрын
Can you give this code file (include html and css, app script). Tks
@selfimagination
@selfimagination Жыл бұрын
Thanks for Watching. In the description of this video, you will get a link to an article in which you will get the source code.
@nghitran7982
@nghitran7982 Жыл бұрын
@@selfimagination Tks for your reply
@bhergieestabillo8599
@bhergieestabillo8599 Жыл бұрын
How to add dropdown. Thank youuu
@selfimagination
@selfimagination Жыл бұрын
Welcome, Will upload soon.
@bhergieestabillo8599
@bhergieestabillo8599 Жыл бұрын
@@selfimagination Thank youuu! Dont stop making content. Im new to html and im following ur tutorialsssss 🤗
@selfimagination
@selfimagination Жыл бұрын
Video Published "Dropdown from Google Sheet"
@dnaml168
@dnaml168 Жыл бұрын
Script function not found: doGet
@selfimagination
@selfimagination Жыл бұрын
Thanks for watching. In this video, the HTML page that has been created and submitted the data is created on the HTML Page Local Computer, hence doPost is used. If you are getting Script Function Not Found Message, then once you create an empty function doGet, or you watch some other videos of this channel, so that you will get the idea of doGet.
@pappuraguvanshi2962
@pappuraguvanshi2962 Жыл бұрын
Sir namste ye code muje starting se dekhna ho to kaise dekhe
@selfimagination
@selfimagination Жыл бұрын
Namaste, Aap isi Channel ki Playlist me ja kar "Google Apps Script" aur "Invoice Generation" wali play list dekhe, inme aapko starting se kaise banaya hain uski jankari mil jaegi. Thanks
@yousuftech22
@yousuftech22 Жыл бұрын
Hello sir this doGet function it possible
@selfimagination
@selfimagination Жыл бұрын
Video will also come soon on doGet function
@yousuftech22
@yousuftech22 Жыл бұрын
@@selfimagination hello sir your tutorial is very nice sir when next tutorial published
@selfimagination
@selfimagination Жыл бұрын
Video Published "How to Pull Data From Google Sheet To HTML Table Using Apps Script"
@yousuftech22
@yousuftech22 Жыл бұрын
Hello sir how to getElementById submit invoice google app script and connected
@atharvakulkarni7925
@atharvakulkarni7925 Жыл бұрын
please help me.
@selfimagination
@selfimagination Жыл бұрын
Yes tell me what is the issue
How to Generate Next Invoice Number Using Google Apps Script
9:08
Self Imagination
Рет қаралды 6 М.
Create Web App Form on Google Sheets using Google Apps Script
8:24
Code With Curt
Рет қаралды 56 М.
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 40 МЛН
Je peux le faire
00:13
Daniil le Russe
Рет қаралды 21 МЛН
АЗАРТНИК 4 |СЕЗОН 3 Серия
30:50
Inter Production
Рет қаралды 931 М.
Men Vs Women Survive The Wilderness For $500,000
31:48
MrBeast
Рет қаралды 98 МЛН
Google Sheets | How To Send HTML Form Data To Google Sheets
12:33
Learning Axis
Рет қаралды 96 М.
Web App - Google Sheets - Form Example
1:24:10
Get __it Done!
Рет қаралды 48 М.
CRUD Operations on Google Sheets
12:35
John Eswin Nizar
Рет қаралды 26 М.
Read & Write to Google Sheets Using a Custom Web Page
12:57
codeSith
Рет қаралды 28 М.
Google Sheets - Full Course
3:03:32
freeCodeCamp.org
Рет қаралды 1,7 МЛН
Save HTML Form Data Into Google Excel Sheets with Easy Way || HTML CSS
15:37
How to "post" html form data to google sheet. (using API )
8:18
小丑在游泳池做什么#short #angel #clown
00:13
Super Beauty team
Рет қаралды 40 МЛН