Question T12310
Visible to All Users

Weird min/max behavior with numeric input

created 2 years ago (modified 2 years ago)

We are seeing a weird behavior with numeric text input set with min/max values. These are for questions that do not require an input (optional).

if a user types a value in the text box and then deletes their response, they wont be able to submit the form and the min value check kicks in, even though the question is not required and the value is blank. You can test this behavior here:

https://plnkr.co/plunk/0nb78OrTIfmk7vlY

Screenshot_20230309-204934.png

This us causing issues with our end users. Please help.

I am not sure why the validation is happening for a blank field.

Show previous comments (1)

    Hi Jane:

    Please see the demo using this link:
    https://plnkr.co/edit/kur27gWOF8fibNvg?preview

    I believe it's using the latest version and it's a very simple JSON with a numeric value and min/max set.

      Hello Prashant,
      Yes, it is definitely a bug. We will fix it. Here is the related issue on GitHub.

      Thank you,
      Andrew
      SurveyJS Team

        The bug is fixed by this PR. The fix will be available in the version we release next week.

        Thank you,
        Andrew
        SurveyJS Team