Questions tagged [angular-dynamic-forms]

12 questions
2
votes
1 answer

Recursive Component of Dynamic Angular Forms - ERROR Error: Cannot find control with name:

I'm creating a project with a Reactive Form; based on Recursive Component that creates Dynamic Form from JSON file. The Sources This is an adaptation from Ionic based on Creating Dynamic Angular Forms with JSON I Adapted the Recursive version…
1
vote
0 answers

For ng-dynamic-forms is there any way to override an existing dynamic control without creating a new one?

I'm using udos86/ng-dynamic-forms v14.0.1 with ui-material. There are 3 controls that don't emit blur and focus as they're missing in the template: DynamicMaterialSelectComponent DynamicMaterialSlideToggleComponent DynamicMaterialSliderComponent I…
0
votes
0 answers

Can I use a single dynamic form throughout my entire Angular application?

Can I use a single dynamic form throughout my entire Angular application? Is this considered a good practice? I'm planning to create a simple CRUD application for products and users. I'd like to know if it's feasible to use the same form for…
pragith98
  • 23
  • 6
0
votes
0 answers

Create Web Form from a JSON data file in Angular 15

I am trying to create a web form from a JSON file. I am getting some issues creating the form. My codes are as mentioned below: JSON file data: { "objCountry": [{ "country": "United Arab Emirates", "fields": [{ "name": "common", …
0
votes
0 answers

Angular: Select checkbox on another checkbox selection ( dynamic form control )

I'm new to angular. I have this UI. I wanted to make Bill To checkbox checked if any one (Address, Email or Phone) of the checkbox is checked. I'm using dynamic form control for checkbox. code snippet: This solution didnt work , as combineLatest is…
0
votes
1 answer

Where to create the FormGroup in an Angular component?

I have angular 15 application containing Projects and Todos. and wondering where in my project component to create the following formgroup: public todoForm: UntypedFormGroup = this.builder.group({}); The full context is : /** * Project component. …
serge
  • 13,940
  • 35
  • 121
  • 205
0
votes
2 answers

Angular 14 form not binding data in dynamic form

I am trying to create a dynamic form to add actors to games in my angular website, but when I load in the page I get the following errors: The second error happens on all input fields for the dynamic form part. export class GameAddComponent…
luca.04
  • 29
  • 7
0
votes
2 answers

Custom Validator on Angular Reactive Form not firing

I'm working with a dynamic reactive form that takes a json input and builds out a form. I also wrote a custom date validator to check if a date is older than another given date (the date is passed in to the validator) .. and returns an error when…
0
votes
2 answers

create a new object from two different objects in js

I'm struggling with the following task. On the one hand I have the following object: [ { name: "VALUE1", type: "select", label: "Label" }, { name: "VALUE2", type: "select", label: "Label" }, { name: "VALUE3", …
kayza
  • 75
  • 1
  • 10
0
votes
0 answers

angular how to control all your addrows?

guys I'm trying to create a Form Array once I clicked the modal, the mat-table will appear. and I will select a row, once I clicked the row it will pass to the other component but, when I add a row again it will get the value of the first row. The…
Yan
  • 149
  • 1
  • 9
0
votes
1 answer

Dynamic forms including patching

I have a form to update existing/create new users. One of the fields is an array of activities they can participate in. The list of activities is retrieved from the server. When editing a user, I want to display all possible activities in a form…
TomDS
  • 49
  • 4
-1
votes
1 answer

Generate Form Fields for each Record in Angular

I have https://stackblitz.com/edit/ingecalc?file=src/app/app.component.ts paramsFormArray: FormArray; properties: Record = { a: 1, b: 2 }; constructor(private fb: FormBuilder) { this.paramsFormArray = this.fb.group( …
serge
  • 13,940
  • 35
  • 121
  • 205