Awesome! For new user validation, are you saying something like if you have an app with users and someone tries to sign up with a username or email that's already been taken?
Thanks for clarifying. I think I can put something together if I'm understanding you correctly. You're thinking a new user signs up with an email address and then a trigger sends an email asking them to sign up?
You should just be able to reference the formik form values and pass them in to your post request inside of the onsubmit. From there, it'll just depend on what errors you're seeing. If something is undefined, it's likely an error in how your form values are being referenced. If it's an error from the API, you'll just need to check the docs and make sure the data is being passed in correctly.
It's probably a bit complex to explain everything here, but it looks like this post should point you in the right direction: medium.com/@rajat_sehgal/create-your-first-react-application-with-express-and-mongodb-e4aa34cacb20. The key points are connecting express to your database, creating a post route in express, and then hitting that endpoint in the submit function. Hope that helps!
Hi,
Thanks for tutorial. Know you help peoples on the all world! I'm from brazil and very content with your video.
Vlw, Chris, forte abraço from Brasil!
Simple, Crisp & helpful! Thanks a lot!
Hoping you to make a few more in future.
How to do the same for MUI-5 autocomplete multiple in React. Please help me
nice!!
Thank you, this video really helped
Just came across your channel. Good stuff and look forward to more. Can you do some validation such as inviting a new user?
Awesome! For new user validation, are you saying something like if you have an app with users and someone tries to sign up with a username or email that's already been taken?
@@ChrisDeSilva for example, inviting a new user to to sign up for an account.
Thanks for clarifying. I think I can put something together if I'm understanding you correctly. You're thinking a new user signs up with an email address and then a trigger sends an email asking them to sign up?
@@ChrisDeSilva Exactly! You rock!
Hello Chris, how can I do a fetch post on the onsubmt function...I keep getting errors when I want to post form data to an api
You should just be able to reference the formik form values and pass them in to your post request inside of the onsubmit. From there, it'll just depend on what errors you're seeing. If something is undefined, it's likely an error in how your form values are being referenced. If it's an error from the API, you'll just need to check the docs and make sure the data is being passed in correctly.
@@ChrisDeSilva Tried it and still getting errors, guess I am never gonna get it 😞
Thank you.
Hi, can you please tell me how to send a form to the database (Mongo DB) using express ?
It's probably a bit complex to explain everything here, but it looks like this post should point you in the right direction: medium.com/@rajat_sehgal/create-your-first-react-application-with-express-and-mongodb-e4aa34cacb20. The key points are connecting express to your database, creating a post route in express, and then hitting that endpoint in the submit function. Hope that helps!
Thanks
i love you
Nice video 👍
but how your forn work without prevet default
The handleSubmit method provided by Formik calls e.preventDefault() so you don't need to write it in your submit function.
What is the vscode theme ? :D
Synthwave '84
@@ChrisDeSilva thanks friend !
I don't know why all developer youtubers are afraid of autocomplete an show validation