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

New survey checkErrorsMode, onValueChanging #2578

Closed
andrewtelnov opened this issue Dec 17, 2020 · 0 comments
Closed

New survey checkErrorsMode, onValueChanging #2578

andrewtelnov opened this issue Dec 17, 2020 · 0 comments
Milestone

Comments

@andrewtelnov
Copy link
Member

We have a popular onValueChanged check error mode, when a user can see an error on changing the value and not on click "Next"/"Complete" buttons, the default behavior.
onValueChanging is similar to onValueChanged, except one big difference. If the value is incorrect, there is an error, then value will not set into survey data. It means that survey data will not contains data with validation errors.
In this mode, you should be aware that question.value and survey.getValue("questionName") can be different, if the question value is not valid. question.value contains value entered by end-user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant