open-forms
open-forms copied to clipboard
Selectboxes backend validation does not take `Required` into account
Product versie / Product version
2.7.6 / latest
Customer reference
No response
Omschrijf het probleem / Describe the bug
I ran into this while looking into https://github.com/open-formulieren/open-forms/issues/4602
Selectboxes that have Required
set to False
and also have a Minimum selected checkboxes
configured to 1 or above still trigger backend validation for minSelectedCount
when no options are selected.
Stappen om te reproduceren / Steps to reproduce
- Create a Form with a step that has a
Selectboxes
field - Leave
Required
asFalse
and configure aMinimum selected checkboxes
of 1 or above - Click
Toon formulier
, go to the step, leave the selectboxes empty and click next - Observe the error stating that you need to check a minimum number of boxes
Verwacht gedrag / Expected behavior
Since the selectboxes are not required, leaving it empty should be possible
Screen resolution
None
Device
None
OS
None
Browser
No response