Validation with password and confirm password field

4 posts, 0 answers
  1. Kyriakos
    Kyriakos avatar
    15 posts
    Member since:
    Jun 2012

    Posted 19 Jun 2013 Link to this post

    Hi , i have the following question , i have a registration form with email, password, and confirm password inside a div wrapper. i would like after the validation checks if all fields are correct and filled to check if the input type password for the label password field and the input type password for the label confirm password field match.
    Is there a way to do that with kendo or should i reffer to plain javascript?

    thanks in advance
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2596 posts

    Posted 19 Jun 2013 Link to this post

    Hello Kyriakos,

    Currently Kendo UI Validator does not have a build-in functionality to compare passwords. However it is pretty easy to implement one with just a few lines of JavaScript. Here is a quick demo for you:

    http://jsbin.com/iyixom/1/edit

    Regards,
    Kiril
    Telerik

    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. duy
    duy avatar
    10 posts
    Member since:
    Feb 2019

    Posted 28 Sep 2020 in reply to Kiril Nikolov Link to this post

    Hi Kiril Nikolov ! 

    It work in "http://dojo.telerik.com/" . But not working on "jsbin.com" or "https://jsfiddle.net/" .... An in my project it not working.

    Please check again !
  4. Neli
    Admin
    Neli avatar
    365 posts

    Posted 30 Sep 2020 Link to this post

    Hello,

    In case you need to validate a password you could create a custom rule depending on the specific requirements. 

    Here is a JsBin example where an error message appears in case the value of the password and the confirmation input does not match. And the same example in Dojo

    The behavior of both is the same on my end. Could you please run the examples and let me know in case any issue arises at your end. 

    I hope the above will helps.

    Regards,
    Neli
    Progress Telerik

    Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Back to Top