Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric validator does not display a custom error message #6588

Closed
JaneSjs opened this issue Jul 25, 2023 · 0 comments · Fixed by #6606
Closed

Numeric validator does not display a custom error message #6588

JaneSjs opened this issue Jul 25, 2023 · 0 comments · Fixed by #6606
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 25, 2023

User Issue: T14007 - Field Validator and Form Level Validation Experience Not Working As Expected
https://surveyjs.answerdesk.io/internal/ticket/details/T14007


View Demo
I set a Numeric validator for a text field:

 {
     "type": "text",
     "name": "question1",
     "validators": [
      {
       "type": "numeric",
       "text": "Enter only numbers"
      }
     ]
    }

You can see that I don't define the min/max validator options. In this case, the error appears with a default text:
image

Expected behavior: the error displays the custom defined text ('Enter only numbers').

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jul 25, 2023
andrewtelnov added a commit that referenced this issue Jul 27, 2023
…rather than with the custom defined message fix #6588
@andrewtelnov andrewtelnov added this to the v1.9.101 milestone Jul 27, 2023
tsv2013 pushed a commit that referenced this issue Jul 27, 2023
…rather than with the custom defined message fix #6588 (#6606)
@RomanTsukanov RomanTsukanov changed the title Numeric Validator - A validation error appears with the default text rather than with the custom defined message Numeric validator does not display a custom error message Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants