Naming an Element for enhancing the standard Messages

4 posts, 0 answers
  1. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 03 Mar 2013 Link to this post

    Suppose you have an element like so

    <input type="text" name="prsFirstName" required />

    Then if the client side validation fails, the following message is shown

    prsFirstName is required

    I would like to give that element a name, which is understood by the end user. For example "first name". I tried by coding

    <input type="text" name="prsFirstName" title="first name" required />

    However, then the message is shrunken to

    first name

    So what do I have to do, so all standard message use the user-oriented naming for the element?

    Michael G. Schneider
  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 05 Mar 2013 Link to this post

    Hi Michael,

    Kendo Validator provides an opportunity for changing the default validation messages with custom ones. In the corresponding documentation you can find code samples that demonstrate the syntax.

    Kind regards,
    Alexander Valchev
    the Telerik team
    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. mgs
    mgs avatar
    163 posts
    Member since:
    Jan 2011

    Posted 05 Mar 2013 Link to this post

    Hello Alexander,

    thanks a lot for the answer.

    I do not want to make each and every message to a custom message. I want to use the standard messages. And at the same time I want the field to be named in a way which the enduser understands. In my opinion this is the way it should be. The technical name of the field should not appear in the user interface.

    Michael G. Schneider
  5. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 07 Mar 2013 Link to this post

    Hello Michael,

    I will forward your feedback to the team for further discussions.

    Regards,
    Alexander Valchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top
Kendo UI is VS 2017 Ready