Suggestion T4600
Visible to All Users

Remove Error of Validation After Select Answer of required Field

created 5 years ago

Hello,

Is there any way to remove validation error after selection answer of required field. See Example below.

https://surveyjs.io/Examples/Library/?id=validators-standard&platform=jQuery

Thanks

Answers approved by surveyjs Support

created 5 years ago

Hello,
By default, we are showing/removing errors on pressing "Next"/"Complete" button. There is an option survey, checkErrorsMode that you can set it "onValueChanged" to show/hide errors on value changed.

I think, it makes sense to remove errors onValueChanging. We will discuss it.

    Show previous comments (2)

      Hello,
      It will work out of the box after we release v1.7.19.

      Thank you,
      Andrew
      SurveyJS Team

        Hello,

        You mean I just have to update version. No need to do anything? It will automatically remove error message onchange value of element.

        It will be helpful if you provide working example for same after new update.

        Thanks

          Hello,

          Yes, it will update automatically (you need to load on page v1.7.19 or greater or latest of SurveyLibrary). After enter valid value to input and change focus to next question validation error will disappear. You will can check this behavior right in the example on our site which you have mention in your start post

          Thanks, Alex
          SurveyJS Team