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

Do not run answer count validator on empty array #3069

Closed
andrewtelnov opened this issue Jul 8, 2021 · 1 comment
Closed

Do not run answer count validator on empty array #3069

andrewtelnov opened this issue Jul 8, 2021 · 1 comment
Labels
Milestone

Comments

@andrewtelnov
Copy link
Member

We should not check min/max answers on checkbox question if an user doesn't check anything. If the question is not required then we should acceopt an empty value regardless of this validator. Answer count validator should work for non-empty array only.

@mwrouse
Copy link

mwrouse commented Jul 8, 2021

Andrew mentioned this in the other issue, but I'll include this link here:
https://jsfiddle.net/mwrouse/qzfw87hL/5/

That link demonstrates that if you have a checkbox question, adding a minimum count validation essentially does the same thing as marking the question as required.

Complete the survey without selecting anything and you will get a validation error.

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

No branches or pull requests

2 participants