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

Naming an Element for enhancing the standard Messages

3 Answers 43 Views
Validation
This is a migrated thread and some comments may be shown as answers.
mgs
Top achievements
Rank 1
mgs asked on 03 Mar 2013, 01:41 PM
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

3 Answers, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 05 Mar 2013, 05:30 PM
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!
0
mgs
Top achievements
Rank 1
answered on 05 Mar 2013, 05:58 PM
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
0
Alexander Valchev
Telerik team
answered on 07 Mar 2013, 01:43 PM
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!
Tags
Validation
Asked by
mgs
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
mgs
Top achievements
Rank 1
Share this question
or