Form Validation in React Material UI

Поделиться
HTML-код
  • Опубликовано: 21 сен 2024
  • 🍒 Related Videos
    Next Video: • React Material UI Tabl...
    Previous Videos: • How to Design a Perfec...
    MERN Stack CRUD: • Complete React + Node ...
    React Quiz App with Web API: • Build a React.js Quiz ...
    Everyone's favourite way of creating React forms: • React Hook Form - 1. I...
    Advanced JavaScript Concepts: • Advanced JavaScript Co...
    🚀 Udemy Course on React Hook Form with Material UI
    ➤ bit.ly/3SQ3ExE (Discount auto-applied)
    📂 GitHub Repository
    ► bit.ly/3k3iU7d
    💖 Channel Support
    ➤ Paypal: bit.ly/3L36ut4
    ➤ UPI App: geni.us/ScanQR...
    ➤ Amazon: geni.us/Amazon...
    💌 For Business Inquiries
    ➤ codaffection@gmail.com
    🚶‍♂️ Follow us
    Facebook : / codaffection
    Discord : / discord
    Twitter : / codaffection
    ---
    Form Validation in React Material UI.
    In this video, we discuss how to implement validation in React Material UI Form and how to insert a new record through the form submit event.
    #MaterialUI #Reactjs #CodAffection

Комментарии • 64

  • @CodAffection
    @CodAffection  4 года назад

    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/3AG7HX4 : Next Part
    bit.ly/4e2VPNn : Previous Videos
    bit.ly/3MkvBrh : React Quiz App with Web API
    bit.ly/3Me2bxo : Everyone's favourite way of creating React forms
    bit.ly/3Co6FMA : Advanced JavaScript Concepts
    bit.ly/2HwIEqF : MERN Stack CRUD

  • @nocturno7887
    @nocturno7887 3 года назад +1

    Excellent content. Was missing input file management in my opinion, but still valuable, thanks!

  • @Pedro21Torres
    @Pedro21Torres 3 года назад

    All this videos from that serie helped me a lot, thank you so much!
    I think that on the Form Validation you should use Yup.

  • @tranquangang9420
    @tranquangang9420 2 года назад

    Very helpful, thank you so much!

  • @brendonanderson8673
    @brendonanderson8673 4 года назад +1

    Dude your videos save my life!

  • @marynakosiv3750
    @marynakosiv3750 3 года назад +1

    BOOM * !

  • @khandoor7228
    @khandoor7228 4 года назад

    good work CA looking forward to the next video!

  • @JoseMartinez-lv4po
    @JoseMartinez-lv4po 4 года назад

    Great job, thanks CA.

  • @abhijeetshikharvlog1444
    @abhijeetshikharvlog1444 2 года назад

    I write multiple condition of email id validation but else if ia not working why ?

  • @nbsangee
    @nbsangee 3 года назад +1

    please make this with same example in typescript !! thanks!!!

  • @jacoblim2945
    @jacoblim2945 3 года назад

    Hey, thanks a lot for this video, really helped me with setting up form validation. One thing I don't fully understand is towards the end when you add in the fieldValues and assign it the "values" state. why is this necessary and how exactly does the equality check (fieldValues == values) at the end determine if the validate() function is being called in the handleSubmit or handleInputChange? I omitted it and the form validation works so it seems unnecessary

  • @techgeeks1643
    @techgeeks1643 3 года назад

    thank you this help me lot

  • @papagachango
    @papagachango 4 года назад

    Awesome! how do you set layout and its controls to be responsive on mobile screen

  • @sonammankame107
    @sonammankame107 3 года назад

    @CodeAffection. Thank you this example. My Form is has too many input fields is there a way to split them in 2 files as components and then call them inside the Form tag. I tried but it gives me errors.

  • @pankaj.yadav1
    @pankaj.yadav1 3 года назад

    sir my validate function not working what can do please help me ...
    const handleSubmit= e=> {
    e.preventDefault();
    if(validate()){
    employeeService.insertEmployee(values);
    }
    }
    in this code inside in if condition nothing execute , sir what am I supposed to do ... please help me

  • @ivanderlich3776
    @ivanderlich3776 3 года назад +1

    Do you have the repository so I can give you a star?

  • @2005Azm
    @2005Azm 4 года назад

    Great as always !

  • @baniyaboy8903
    @baniyaboy8903 3 года назад

    what if we use node js for backend instead of localstorage . please connect this form with node js. make a video on this topic

  • @soumyabhardwaj2999
    @soumyabhardwaj2999 3 года назад

    How can i ADD validation to check box and gender radio buttons ?

  • @tusharpatel7794
    @tusharpatel7794 4 года назад +3

    Can you make a series on frontend as a react and backend as a django api

    • @kefamutuma7402
      @kefamutuma7402 4 года назад

      I second this. With Authentication and Private routes

  • @mattmarkus4868
    @mattmarkus4868 4 года назад +1

    Hi, do you show how to get data from api using react and M UI in any of your videos?

    • @CodAffection
      @CodAffection  4 года назад

      nope, I've not used any specific API to retrieve the data. because it might most of you if you are not familiar with the api/ environment. So i used local-storage.

    • @chrisperry5658
      @chrisperry5658 3 года назад +1

      @@CodAffection I would recommend doing a video on how to load options asynchronously. Having an example of how to make a form that depends on promises would be really helpful.

  • @nitinjha3718
    @nitinjha3718 4 года назад

    Hi you should also add Memoization in usetable part

  • @Lipak29
    @Lipak29 3 года назад

    @CodAffection. I have a Form cnontainer where I change the different Form based on the dropdown selection which is on the parent container. Now I have different form fields but the form element is only one. Using your approach how can i pass that the relevant form which is loaded will be validated? For ex. i have MainContainer with (Name, Type (S3, FTP), and Submit Button). Based on the type selection say FTP, the UI will render the FTPDetails.js (Component) which has the fields just like your employee for and i thought to put the validation code in FTPDetails.js instead of container. But not sure how to invoke the validation code. Any suggestion?

  • @てんかわ-c1m
    @てんかわ-c1m 3 года назад

    Thank you very much.
    What is the license of the source code?

  • @abhisheksuryavanshi7396
    @abhisheksuryavanshi7396 3 года назад

    what if i want to add the data in form of array on json server?

  • @chrismanuel8993
    @chrismanuel8993 2 года назад

    nice video

  • @ABsazerNer
    @ABsazerNer 3 года назад

    I made project in angular, the validation in angular is so easy and simple than that

  • @interestingevents7029
    @interestingevents7029 4 года назад

    when i click new employee i should have a empty form... but when i click an employee its should show its details in those Textfields... and i can update those details ans save agian... how can i achive that too? please add those piece of code in the project too...

    • @CodAffection
      @CodAffection  4 года назад

      It's explained it today's video. will be live within 2hr.

  • @amzykhan8581
    @amzykhan8581 2 года назад

    When I reset it clears the fields but no the errors

  • @saivivekravi4979
    @saivivekravi4979 4 года назад

    Super can you make more on material ui tell me what font family you are used in vscode please can you send me your setting.json of vscode

    • @CodAffection
      @CodAffection  4 года назад

      Dank Mono, it's not free actually.

  • @interestingevents7029
    @interestingevents7029 4 года назад

    could you please demostrate Jest in this project

  • @ashraf6850
    @ashraf6850 3 года назад

    Hello sir without scaffolding crud operation banao asp.net MVC EntityFramework please sir

  • @101_shambhavisharma8
    @101_shambhavisharma8 3 года назад

    For implementing this validation. What pakage we need to install through npm or what we need to include in our code ?

    • @96ptg
      @96ptg 3 года назад

      No extra package is being used for validation here. Just follow the tutorial. It works.

  • @savaramkiran
    @savaramkiran 2 года назад

    By Default Department Error message is not in Red Color

    • @CodAffection
      @CodAffection  2 года назад

      hope you are following the series one by one.
      did you compare the demo project with yours.

    • @savaramkiran
      @savaramkiran 2 года назад

      @@CodAffection can i get demo project link

  • @743Dora
    @743Dora Год назад

    How can I update this to latest MUI and use it

    • @CodAffection
      @CodAffection  Год назад

      follow the same steps after installing the current Material UI version 5 and let me know if there is any error.

    • @743Dora
      @743Dora Год назад

      @@CodAffection but seems the packages are different in 5

  • @jainishsakhidas4571
    @jainishsakhidas4571 3 года назад +1

    bro i am getting an error in temp.fullName

    • @jainishsakhidas4571
      @jainishsakhidas4571 3 года назад +1

      Property 'fullName' does not exist on type '{}'.
      this is the error i am getting

    • @augustyng
      @augustyng 3 года назад

      @@jainishsakhidas4571 in typescript you should use
      let temp:any = {}
      maybe someone will be helped by this

  • @lucasmegaloja
    @lucasmegaloja 4 года назад +3

    I sent you 1.22 dollars, for supporting you

    • @CodAffection
      @CodAffection  4 года назад +2

      Thanks for the support. Really appreciate it.

  • @tanaybanerjee991
    @tanaybanerjee991 3 года назад

    nothing is showing in my localstorage

  • @mrwho2513
    @mrwho2513 3 года назад

    I'd like yt had a filter for indian tutorials....

  • @이지연-t6m2b
    @이지연-t6m2b 2 года назад

    28:11

  • @dileepkamboji243
    @dileepkamboji243 3 года назад

    i am getting id as undefined

  • @sanjeebgochhayat6911
    @sanjeebgochhayat6911 Год назад

    Can you polish the content and made this video again

    • @CodAffection
      @CodAffection  Год назад

      I thought about it, let's see

    • @sanjeebgochhayat6911
      @sanjeebgochhayat6911 Год назад

      @@CodAffection Actually i implemented this specification in my project and it's working too..
      But i got some issues...Can i get ur email adress please

  • @nikhilbhardwaj6055
    @nikhilbhardwaj6055 3 года назад

    heiaaa

  • @miguelangelchamorrofuentes9248
    @miguelangelchamorrofuentes9248 4 года назад

    the github code?? please, thanks

    • @CodAffection
      @CodAffection  4 года назад

      It's added to the video description.

  • @cejaramillof
    @cejaramillof 4 года назад

    can share the github? thanks

    • @CodAffection
      @CodAffection  4 года назад +1

      It's added to the video description.

  • @abhishekCJsharma
    @abhishekCJsharma 4 года назад +2

    26:15