diff --git a/e2e/process-services/form/form-widgets-component.e2e.ts b/e2e/process-services/form/form-widgets-component.e2e.ts
index a9acf98ed9..56f27000fc 100644
--- a/e2e/process-services/form/form-widgets-component.e2e.ts
+++ b/e2e/process-services/form/form-widgets-component.e2e.ts
@@ -145,7 +145,7 @@ describe('Form widgets', () => {
});
it('[C272783] Should display displayText and displayValue in form', async () => {
- const expected0 = ' ' + formInstance.getWidgetBy('id', appFields.displayText_id).value;
+ const expected0 = formInstance.getWidgetBy('id', appFields.displayText_id).value;
const expected1 = (formInstance.getWidgetBy('id', appFields.displayValue_id).value as string) || 'Display value';
const expected2 = (formInstance.getWidgetBy('id', appFields.displayValue_id).value as string) || '';
diff --git a/lib/core/src/lib/form/components/form-field/form-field.component.html b/lib/core/src/lib/form/components/form-field/form-field.component.html
index 2d49e5563d..9a3a12f5ae 100644
--- a/lib/core/src/lib/form/components/form-field/form-field.component.html
+++ b/lib/core/src/lib/form/components/form-field/form-field.component.html
@@ -1,6 +1,7 @@
diff --git a/lib/core/src/lib/form/components/form-field/form-field.component.ts b/lib/core/src/lib/form/components/form-field/form-field.component.ts
index 635e93ff1e..ed84a3482c 100644
--- a/lib/core/src/lib/form/components/form-field/form-field.component.ts
+++ b/lib/core/src/lib/form/components/form-field/form-field.component.ts
@@ -20,6 +20,7 @@ import {
Component,
ComponentFactory,
ComponentRef,
+ inject,
Input,
NgModule,
OnDestroy,
@@ -30,7 +31,8 @@ import {
} from '@angular/core';
import { FormRenderingService } from '../../services/form-rendering.service';
import { WidgetVisibilityService } from '../../services/widget-visibility.service';
-import { FormFieldModel } from '../widgets';
+import { FormFieldModel } from '../widgets/core/form-field.model';
+import { FieldStylePipe } from '../../pipes/field-style.pipe';
declare const adf: any;
@@ -38,7 +40,8 @@ declare const adf: any;
selector: 'adf-form-field',
standalone: true,
templateUrl: './form-field.component.html',
- encapsulation: ViewEncapsulation.None
+ encapsulation: ViewEncapsulation.None,
+ imports: [FieldStylePipe]
})
export class FormFieldComponent implements OnInit, OnDestroy {
@ViewChild('container', { read: ViewContainerRef, static: true })
@@ -57,7 +60,9 @@ export class FormFieldComponent implements OnInit, OnDestroy {
focus: boolean = false;
- constructor(private formRenderingService: FormRenderingService, private visibilityService: WidgetVisibilityService, private compiler: Compiler) {}
+ private readonly formRenderingService = inject(FormRenderingService);
+ private readonly visibilityService = inject(WidgetVisibilityService);
+ private readonly compiler = inject(Compiler);
ngOnInit() {
const w: any = window;
diff --git a/lib/core/src/lib/form/components/form-renderer.component.html b/lib/core/src/lib/form/components/form-renderer.component.html
index 598cb4170d..691c9208a5 100644
--- a/lib/core/src/lib/form/components/form-renderer.component.html
+++ b/lib/core/src/lib/form/components/form-renderer.component.html
@@ -21,7 +21,7 @@
[id]="'field-' + currentRootElement?.id + '-container'"
class="adf-container-widget"
[hidden]="!currentRootElement?.isVisible">
-