open-forms icon indicating copy to clipboard operation
open-forms copied to clipboard

Hidden components with "Multiple values" trigger validation

Open LaurensBurger opened this issue 5 months ago • 7 comments

Product versie / Product version

latest

Customer reference

no particular but it get's reported

Omschrijf het probleem / Describe the bug

Hidden component with "Multiple values" set get their defaultValue changed from:

  "defaultValue": null,

to:

  "defaultValue": [
    null
  ],

This causes validation to trigger right after loading since their value is now [] instead of [ null ]

  "telefoonnummer": []

This can be resolved by changing the defaultValue to via the json of the components:

  "defaultValue": [],

LaurensBurger avatar Sep 16 '24 10:09 LaurensBurger