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

Error in Custom Validation example

2 Answers 37 Views
Form
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Veteran
Michael asked on 16 May 2020, 03:39 PM

{ field: "LastName", label: "LastName:", validation: { required: true, message: "test" }, hint: "Hint: enter alphanumeric characters only." },

The validation attribute message seems to be wrong

It should be validationMessage not message

2 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 18 May 2020, 06:21 AM

Hello Michael,

Thank you for reporting this discrepancy in the Validation Demo of the Form.

Actually, the correct configuration should be as follows:

validation: { 
  required: { message: "test" },
  ...
}

There is also another issue in the demo where the error message template is configured incorrectly and always shows the "Fill in" text which might be confusing. In addition to this, there is an issue with the name of the greaterdate custom validation rule which is incorrect.

We are aware of those issues with the demo and are workign towards resolving them and uploading a new version of the demos to prevent confusion in the future. In any case, here is an updated Dojo examle where all of the above-mentioned issues are resolved:

I hope this helps.

Regards,
Dimitar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Michael
Top achievements
Rank 1
Veteran
answered on 18 May 2020, 09:18 AM
Thanks again Dimitar, great help
Tags
Form
Asked by
Michael
Top achievements
Rank 1
Veteran
Answers by
Dimitar
Telerik team
Michael
Top achievements
Rank 1
Veteran
Share this question
or