Validation does not work properly on Kendo UI Mobile

3 posts, 1 answers
  1. Reggie Pangilinan
    Reggie Pangilinan avatar
    4 posts
    Member since:
    Oct 2009

    Posted 13 Sep 2013 Link to this post

    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. Answer
    Alexander Valchev
    Admin
    Alexander Valchev avatar
    2875 posts

    Posted 16 Sep 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Reggie Pangilinan
    Reggie Pangilinan avatar
    4 posts
    Member since:
    Oct 2009

    Posted 18 Sep 2013 Link to this post

    Thanks! That worked :)
Back to Top