Skip to content

Commit 79cb51b

Browse files
Fix hints not being displayed for dynamic array fields
1 parent e4f483c commit 79cb51b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<ng-container #componentViewContainer></ng-container>
1616
</div>
1717

18-
<small *ngIf="hasHint && ((!model.repeatable && (isRelationship === false || value?.value === null)) || (model.repeatable === true && context?.index === context?.context?.groups?.length - 1)) && (!showErrorMessages || errorMessages.length === 0)"
18+
<small *ngIf="hasHint && (formBuilderService.hasArrayGroupValue(model) || (!model.repeatable && (isRelationship === false || value?.value === null)) || (model.repeatable === true && context?.index === context?.context?.groups?.length - 1)) && (!showErrorMessages || errorMessages.length === 0)"
1919
class="text-muted ds-hint" [innerHTML]="model.hint | translate" [ngClass]="getClass('element', 'hint')"></small>
2020
<!-- In case of repeatable fields show empty space for all elements except the first -->
2121
<div *ngIf="context?.index !== null

src/app/shared/form/builder/ds-dynamic-form-ui/ds-dynamic-form-control-container.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ export class DsDynamicFormControlContainerComponent extends DynamicFormControlCo
248248
private submissionObjectService: SubmissionObjectDataService,
249249
private ref: ChangeDetectorRef,
250250
private formService: FormService,
251-
private formBuilderService: FormBuilderService,
251+
public formBuilderService: FormBuilderService,
252252
private submissionService: SubmissionService
253253
) {
254254
super(ref, componentFactoryResolver, layoutService, validationService, dynamicFormComponentService, relationService);

0 commit comments

Comments
 (0)