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

checkErrorsMode: "onValueChanged": Validation error doesn't disappear even though the dependent field was corrected #8539

Closed
JaneSjs opened this issue Jul 10, 2024 · 0 comments · Fixed by #8546
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jul 10, 2024

T18952 - Validation on 2 dependent fields not updating each others errors
https://surveyjs.answerdesk.io/internal/ticket/details/T18952


Consider the following survey definition:

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "panel",
     "name": "panel1",
     "elements": [
      {
       "type": "dropdown",
       "name": "a",
       "title": "A",
       "validators": [
        {
         "type": "expression",
         "expression": "{a} + {b} <= 10"
        }
       ],
       "choicesMax": 10
      },
      {
       "type": "dropdown",
       "name": "b",
       "startWithNewLine": false,
       "title": "B",
       "validators": [
        {
         "type": "expression",
         "expression": "{a} + {b} <= 10"
        }
       ],
       "choicesMax": 10
      }
     ],
     "title": "The sum of two fields should be less than 10"
    }
   ]
  }
 ],
 "checkErrorsMode": "onValueChanged"
}

To reproduce the issue, follow these steps:
https://github.com/surveyjs/survey-library/assets/22372972/a676aec2-8243-4249-95cd-5d75d428482d

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jul 10, 2024
@andrewtelnov andrewtelnov self-assigned this Jul 10, 2024
andrewtelnov added a commit that referenced this issue Jul 11, 2024
…t disappear even though the dependent field was updated to correct the validation error fix #8539
@OlgaLarina OlgaLarina added this to the v1.11.7 milestone Jul 16, 2024
@RomanTsukanov RomanTsukanov changed the title With checkErrorsMode: "onValueChanged", The validation message doesn't disappear even though the dependent field was updated to correct the validation error checkErrorsMode: "onValueChanged": Validation error doesn't disappear even though the dependent field was corrected Jul 16, 2024
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.

3 participants