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

Number question validation message does not consider min max value given in the question #2757

Open
MJ1998 opened this issue Dec 20, 2024 · 0 comments · May be fixed by #2763
Open

Number question validation message does not consider min max value given in the question #2757

MJ1998 opened this issue Dec 20, 2024 · 0 comments · May be fixed by #2763
Labels
effort:small Small effort - 2 days good first issue Good for newcomers P1 High priority issue

Comments

@MJ1998
Copy link
Collaborator

MJ1998 commented Dec 20, 2024

Describe the bug
The validation message for a number field displays "The answer should be a number between <INT_MIN> and <INT_MAX>" when input a non-numeric character. This should rather be the min and max value (if) given in the questionnaire item.

Component
Core library, SDC library, reference app, or SDC gallery app

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
The validation message should be, for example, "The answer should be a number between 30 and 200."

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Device: [e.g. Pixel4a emulator]
  • Android version: [e.g. Settings -> About phone -> Android version]
  • Build number: [e.g. Settings -> About phone -> Build number]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Would you like to work on the issue?
Please state if this issue should be assigned to you or who you think could help to solve this issue.

@MJ1998 MJ1998 added effort:small Small effort - 2 days good first issue Good for newcomers P1 High priority issue labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
effort:small Small effort - 2 days good first issue Good for newcomers P1 High priority issue
Projects
None yet
1 participant