VueJs Form Validation with Vuelidate | Diligent Dev

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ม.ค. 2025

ความคิดเห็น • 24

  • @Sammandanu
    @Sammandanu 4 ปีที่แล้ว +1

    So far this is the clearest explanation about using vuelidate, thanks

  • @mpedzi031
    @mpedzi031 4 ปีที่แล้ว +1

    Thanks. Been a bit since I used Vuelidate, and this was a perfect refresher.

  • @quantumcd1045
    @quantumcd1045 3 ปีที่แล้ว +1

    I was looking for a way to validate form inputs with VueJS, thanks for the content.

  • @khalidking3394
    @khalidking3394 2 ปีที่แล้ว +1

    Thank youuu for this great tutorial ❤❤❤❤❤

  • @moynulislam739
    @moynulislam739 4 ปีที่แล้ว +1

    thank you very much bro. it was very much helpful for me

  • @ellegre6546
    @ellegre6546 4 ปีที่แล้ว +1

    Everything's clear, thank you!

  • @cleo_the_cat
    @cleo_the_cat 3 ปีที่แล้ว

    Excellent video - thanks a lot!!

  • @ivanlegranbizarro8102
    @ivanlegranbizarro8102 4 ปีที่แล้ว +1

    Thank you! Help me so much

  • @yasindemirkaya2954
    @yasindemirkaya2954 4 ปีที่แล้ว

    How do I validate two different forms in a single component. $v cannot realize which form that I submit so when I submit first form, it triggers the second form's error messages as well. Same thing happens when I start with the second one. In other words, the first form I tried to submit gives an error, then I submit the other form. When I get back to the form I tried first, I see that it works too. What am I missing?

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว

      Personally, I would put the forms in different components. If that’s not an option, these answers may help:
      github.com/vuelidate/vuelidate/issues/421
      github.com/vuelidate/vuelidate/issues/358

  • @ruslanbairamov
    @ruslanbairamov 4 ปีที่แล้ว +2

    Good job !

  • @thenightcoder7
    @thenightcoder7 4 ปีที่แล้ว +1

    Good job man, but always push this code to any publish repository so we can use it?

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว

      Hmm.... I usually do. I must have forgot to attach it. Let me look on my computer for it.

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว

      Found it: bitbucket.org/TheDiligentDev/vue-form-validation/src/master/

    • @saikatgarai8310
      @saikatgarai8310 4 ปีที่แล้ว

      @@DiligentDev please sir help me with phone number validation.
      no one has created any form with phone number.

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว

      @@saikatgarai8310 You'll need to create a custom validator. For a phone number, I would use regex. vuelidate.js.org/#sub-regex-based-validator

  • @VinhNguyen-lv4zx
    @VinhNguyen-lv4zx 4 ปีที่แล้ว

    hello, i do not use $v in tag span. It notification is 'Unresolved variable or type $v'. Plz help me

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว +1

      $v is part of the Vuelidate package. It’s difficult for me to diagnose the issue without seeing the code

    • @Uche.Azinge
      @Uche.Azinge 4 ปีที่แล้ว +3

      make sure to import Vuelidate from "vuelidate"; in your main.js. Also don't forget to Vue.use(Vuelidate);

  • @saikatgarai8310
    @saikatgarai8310 4 ปีที่แล้ว

    can anyone please help me with phone number validation???

    • @DiligentDev
      @DiligentDev  4 ปีที่แล้ว

      Did you see my other comment about creating a custom validator using regex? They cover it in their docs.

  • @nemonym2466
    @nemonym2466 3 ปีที่แล้ว

    This is a great tutorial about how to validate forms with Vuelidate.
    But please, fellow viewers, never write forms like this, where you delete important attributes like "for" from or "id" from . This is terrible for accessibility.

    • @DiligentDev
      @DiligentDev  3 ปีที่แล้ว +1

      Agreed. I just wanted to get through the tut but accessibility is SUPER important.