Error in Custom Validation example

3 posts, 1 answers
  1. Michael
    Michael avatar
    6 posts
    Member since:
    Feb 2019

    Posted 16 May Link to this post

    { 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. Answer
    Dimitar
    Admin
    Dimitar avatar
    780 posts

    Posted 18 May Link to this post

    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.
  3. Michael
    Michael avatar
    6 posts
    Member since:
    Feb 2019

    Posted 18 May in reply to Dimitar Link to this post

    Thanks again Dimitar, great help
Back to Top