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

Validation does not work properly on Kendo UI Mobile

2 Answers 10 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Reggie Pangilinan
Top achievements
Rank 1
Reggie Pangilinan asked on 13 Sep 2013, 02:16 PM
I'm trying to do a simple input validation with a text and password that is binded to a view-model, basically both are required.
When kendo.validator is triggered it only validates the text input and not the password input.

Is there anything that im doing wrong? Please help check the attached code.


2 Answers, 1 is accepted

Sort by
0
Accepted
Alexander Valchev
Telerik team
answered on 16 Sep 2013, 12:07 PM
Hello Reggie,

Kendo Validator works on the basis of name attributes. In order to fix the issue you should add unique name attribute to each field. For example:
<li>
    <label for="username">Username:</label>
    <input type="text" id="username" name="username" data-bind="value: username" required="required" />
</li>
<li>
    <label for="password">Password:</label>
    <input type="password" id="password" name="password" data-bind="value: password" required="required" />
</li>


Regards,
Alexander Valchev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Reggie Pangilinan
Top achievements
Rank 1
answered on 18 Sep 2013, 12:31 PM
Thanks! That worked :)
Tags
General Discussions
Asked by
Reggie Pangilinan
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Reggie Pangilinan
Top achievements
Rank 1
Share this question
or