Hi @yisrael-wix I tried your example template and it works of course.
Could you explain better how does it work please ?
Also in block diagram, it could be really motivating for who like me itâs trying to learn.
I would learn how import a CSV file into a Wix collection via code in order to refresh and update the old data in Wix dbase, so I thought to get it via Google sheet.
For the newbies like me: actually I found a good reference via node-googleapis-installation in Wix, the following link, where all is really well explained:
As mentioned above in this example the configuration and usage were separated.
the configuration form generates the needed tokens for authentication and communication with google sheet api. It saves these token to the db.
At the home page you can find the userâs form. this form is using the authentication tokens when
entering data to the sheet.
@gal-morad thanks so much ! I am trying to learn and practice, with difficulty, but my goal is import via code a csv file in a Wix collection. I thought of import a csv file in a Google Sheet and then import via Json in Wix.
How do you see this ?
@gal-morad you are in right
I usually store data in google cloud Sheet
Wix node doesnât have the fs readfile and I would create an automatization to load in Wix collection the google data, without the manual dB manager.
Can someone help a total beginner to get started, here? I am technically savvy, but brand new to Corvid and Wix automation, and lacking context for this post. How does one access the âGoogle Sheet NPMâ form, in the OP?
This example demonstrates how to implement google sheet integration from scratch at your site.
Begin by clicking âExample Templateâ it will open editor with a code and DB, if you publish it and follow the configurations step, you will have a standalone form that enters rows into a google sheet.
you can learn from this code how to implement it at your site.
@leopoldtaylor For those people stuck with the same problem (you will know because the Save Button will be grayed out which gives you a clue if you read the js code) - The database is not configured.
in step 5 from Leoâs steps above
âŚ
Created a new database collection with the same name and settings as the example site and entered in the relevant fields.
Yes, you created a new database, but what happened was it was linked/created on the new WIX site and not on the WIX site you are trying to put the form onto.
TL:DR to resolve, go into the database settings of your WIX site (not the new one) and add the 3 missing rows of ârefresh tokenâ âsheet idâ and âclient configâ and their values.
I am new to Wix and i am not a coder. I did the example - it worked GREAT. I do have a question though. How do i use this example in my website? I am using Wix to build an APP that will collect data from the user. This data is saving in the Database collection i created inside Wix. How do i make my submit button - connect to my google sheet instead of using the database collection?
Hi dear @ Yisrael (Wix) ,
Thanks for the great code. It saves lots of time.
But still I have a question.
After added the data to the google sheet (using your code) , is there any way to update it through the website�
I mean using a dropdown menu, select & retrieve the data and update the selected data field.