android-fhir icon indicating copy to clipboard operation
android-fhir copied to clipboard

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

Open MJ1998 opened this issue 1 year ago • 2 comments

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 avatar Dec 20 '24 06:12 MJ1998

@MJ1998 can I pick this up?

DeTuksa avatar Nov 17 '25 10:11 DeTuksa

Yes, I would like to work on this issue.

Amit-kumar80844 avatar Dec 02 '25 05:12 Amit-kumar80844