diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html index 81cc92a42b8..8be7887c355 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html @@ -41,12 +41,12 @@
!!elem.value); + + if (!groupHasSomeValue && !parent.isRequired && parent.group?.length > 1) { + this.group.reset(); + } + + return (groupHasSomeValue && !parent.isRequired) || (hasValue(parent.isRequired) && parent.isRequired); + } else { + return true; + } + } }