This is a migrated thread and some comments may be shown as answers.

Validation with password and confirm password field

3 Answers 1807 Views
Validation
This is a migrated thread and some comments may be shown as answers.
Kyriakos
Top achievements
Rank 1
Kyriakos asked on 19 Jun 2013, 10:04 AM
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

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 19 Jun 2013, 12:48 PM
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!
0
duy
Top achievements
Rank 1
Veteran
answered on 29 Sep 2020, 03:50 AM
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 !
1
Neli
Telerik team
answered on 30 Sep 2020, 03:42 PM

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/.

Tags
Validation
Asked by
Kyriakos
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
duy
Top achievements
Rank 1
Veteran
Neli
Telerik team
Share this question
or