Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
103 views

I have a Reactive Form in an Angular 21 application, and the form requires an array of a certain sub-form. (In my case the sub-form(s) define "filters" on a search.) The documentation on ...
workerjoe's user avatar
  • 2,765
2 votes
2 answers
86 views

I am developing a timesheet form page in Angular 20. I am using formGroup, FormArray and FormControl classes. I am facing issues in retrieving and displaying the date values which I am pushing into ...
santubangalore's user avatar
1 vote
1 answer
76 views

Like it says, I want to add an item to the middle of a FormArray. So, I have a FormArray and every FormArray item has a button to add a new FormArray item. However, it currently always adds it to ...
HisDivineShadow's user avatar
1 vote
1 answer
508 views

I'm working on an Angular project where I need to implement a form that includes a FormArray with multiple FormControl instances, each using PrimeNG's Autocomplete component with multiple selection ...
syahiruddin's user avatar
0 votes
1 answer
28 views

I'm working on a solution where I have a table grid that allow users to add and remove items from the table. Inside of each row are select columns that represent states, cities and mlb teams. I'm ...
Brandon Michael Hunter's user avatar
1 vote
1 answer
67 views

I have form array and for some reason I dont see any value in my app-input component. if I define simple formGroup contorl and pass to app-input I can see value. But in formarray happnes something ...
Sunstrike527's user avatar
0 votes
1 answer
347 views

Need help from anyone who has worked on angular reactive forms. I have a parent component and 3 child components In the parent component, I have a form which looks like this : parent form : ...
Sarath's user avatar
  • 313
1 vote
1 answer
144 views

I have an easy setup with Angular typed forms. In the example I built a FormGroup with two FormControls: A normal text field with required Validators A form Array that contains a FormGroup with a ...
David Mason's user avatar
  • 1,551
0 votes
2 answers
175 views

I’m working on a form that manages currencies, with fields for code and label. I’m using the latest Angular features and trying to leverage typed forms. I have a FormArray inside a FormGroup, which is ...
Wesley's user avatar
  • 457
2 votes
1 answer
89 views

The input field is not displayed with the appearance of <mat-form-field> before clicking inside when formGroupName is used with FormArray. See the example: TS: formMain = this.fb.group({ ...
Bruno Belhoste's user avatar
2 votes
1 answer
93 views

What I expect to achieve is selecting a product that comes with a price, adding the quantity, and then selecting another product still from that same list of products. The challenge is this works as ...
Killian Thompson's user avatar
1 vote
1 answer
38 views

I have a form in a steper (cdk) that works fine and I'm refactoring it to make it dynamic. My goal is to use json at the end to generate the form content. Right now I have the following code: export ...
sampow's user avatar
  • 43
-1 votes
1 answer
43 views

enter image description here I need to render the Dynamic fields in the Angular. But, that one is solved. Then what the issue is when i render the Nested Array or a Group it's not rendering properly. ...
Baskaran Skillmine's user avatar
2 votes
1 answer
73 views

I am dynamically adding formControl to a parent form by iterating an array of objects & want to track the change in these dynamically added controls by adding the valueChanges to the parent form ...
brk's user avatar
  • 50.3k
1 vote
1 answer
494 views

I am developing a calendar app and want to handle three tabs such as hours timing / out of office / holiday tabs in a form. what is the efficient appraoch to group the form as there is one form and ...
Muhammad Junaid's user avatar
2 votes
3 answers
1k views

The migration from Angular 10 to Angular 15 has caused the following error on the console: ERROR Error: Cannot find control with path: 'mappedHeaders -> 0 -> value' example.ts headerArray: ...
Niamatullah Bakhshi's user avatar
0 votes
1 answer
251 views

the below code works, https://stackblitz.com/edit/stackblitz-starters-wnququ?file=src%2Fmain.html But I need to take it a step further and ensure that the end date of the FormGroup at index (x) is not ...
Sachin's user avatar
  • 569
0 votes
2 answers
545 views

This works on a simple form, with a single start and end date, but now the form I have is dynamic which has multiple pairs of start and end dates, so I've had to use a FormArray. Here is the structure,...
Sachin's user avatar
  • 569
1 vote
1 answer
527 views

I am trying to use a FormArray in combination with a cdkDropList. But as soon as I add the corresponding FormGroup, the cdkDrag within that group stops working. So do any other events, like click ...
Lapskaus's user avatar
  • 1,721
1 vote
1 answer
296 views

I have a FormArray with 3 FormGroups and each form group has 2 controls. Im not sure how to access the controls within the form groups to set the form control name. setting up the form this.form = ...
tony nguyen's user avatar
1 vote
2 answers
58 views

Is it posible to have a formArray nested inside of other formArray and show it properly in the HTML view? I'm building a paginated form based on an API response, so I'm iterating over my response to ...
soni's user avatar
  • 749
1 vote
1 answer
55 views

I am working on billing of product page based on product list using Angular as front end. Here when I selected product "apple" the price should be calculated and displayed in price control ...
Reegan's user avatar
  • 349
0 votes
2 answers
459 views

I am getting the following error when trying to populate a FormArray in Angular (version 17): Argument of type 'FormGroup<{ name: FormControl<string | null>; amount: FormControl<number | ...
Jose Luis Roman's user avatar
0 votes
1 answer
585 views

I'm trying to create a dynamic form array in Angular 17 with a child component handling part of the input. However, I'm encountering an error: Type 'AbstractControl<any, any>' is missing the ...
syahiruddin's user avatar
0 votes
1 answer
64 views

I have a formarray in the form, Need to hide and show based on dropdown value - is_dependent_exist I have tried like below: var all_user_custom_fields = [ { 'field_name_slug': '...
Anil Kumar Boddu's user avatar
0 votes
1 answer
49 views

I have the following component in HTML: <div> <form [formGroup]="dynamicFormGroup" (ngSubmit)="onSubmit()"> <div class="form-row" *ngFor="...
user3653474's user avatar
  • 3,872
0 votes
1 answer
291 views

I need to show users' names and a list of their courses. Different users have different numbers of courses. Thus, I am trying Angular Form Array. Here is my .ts: this.form = this.fb.group({ name: [''...
user6781's user avatar
  • 621
1 vote
1 answer
948 views

I want to create a dynamic form that is an array of payments, the user can add a new payment, delete from the array, and edit. My HTML: <form [formGroup]="createLoanPaymentsForm" (...
Pedro Octávio Cruvinel's user avatar
0 votes
1 answer
143 views

This is how I set my form control: formMain = this.fb.group({ details: this.fb.array([ new FormGroup({ label: new FormControl(''), description: new FormControl(''), }) ]) }); ...
xRay's user avatar
  • 819
1 vote
2 answers
90 views

Hi i have a component template recipe-edit.component.html: <div class="row"> <div class="col-xs-12"> <form [formGroup]="recipeForm" (ngSubmit)="...
Nop Sled's user avatar
0 votes
1 answer
61 views

I have a FormArray in PreprocesssingForm. Here, Sequence No is not getting changed when I add a new row. <tr class="mat-row" *ngFor="let dynamic of PreprocessingForm.controls....
Purushottam Nawale's user avatar
0 votes
1 answer
159 views

I want to define a question which has some answers. Here is my code: formGroup!:FormGroup; answerFormGroup:FormGroup=this.formBuilder.group({ text: ['d', Validators.required], value: [0, ...
MB_18's user avatar
  • 2,501
2 votes
1 answer
99 views

I want the select-option and input-text fields to be added once when I click on the Add button. I've already achieved this. That's okay. When I click on the Add Serv button, the input-text field in ...
Şebnem Seymen's user avatar
0 votes
1 answer
22 views

I'm trying to make an array of books where each book has multiple authors that I can add or remove I'm trying to learn angular and I've come across a need to have an array nested within another array. ...
Joe EnDo's user avatar
1 vote
2 answers
148 views

I'm using Angular CLI version 16.2.1. I'm following a course and I'm using reactive forms: In a 'Recipe' list I need to add a Recipe with some inputs and a list of ingredients. The problem is that ...
alesssz's user avatar
  • 518
0 votes
1 answer
79 views

Object is possibly 'null'. Element implicitly has an 'any' type because expression of type '"controls"' can't be used to index type 'AbstractControl<any, any>'. Property 'controls' ...
CHINTAN PATEL's user avatar
0 votes
1 answer
196 views

I'm encountering an issue with an Angular application where I have a FormArray representing a list of selected items. When I select items from a list and then deselect them, undefined values are left ...
ssofiaavila's user avatar
1 vote
1 answer
57 views

From data that I recive from API I want to create a reactive form. I have a formparent and multiple childforms. The data that I want to display in form looks like this: data{ "...
Niryana's user avatar
  • 35
0 votes
0 answers
45 views

I have the following definitions for a FromArray: manageIds!: FormArray I use the following function to generate the form controls dynamically in the HTML: getControl(form: FormArray, index: number, ...
k.vincent's user avatar
  • 4,243
-1 votes
1 answer
867 views

I am pretty new to angular and learning formArray. I have 2 simple lists of roles and rights. For this, I need to plot a checkbox matrix as follows. Also, at the bottom of every column, I need to show ...
Adam.M's user avatar
  • 1
0 votes
0 answers
577 views

I have problem with cdkVirtualFor with FormArray. It doesn't generate any items. My html: <cdk-virtual-scroll-viewport [itemSize]="100" class="viewport-container" [...
Horsebye's user avatar
0 votes
1 answer
457 views

I have a reactive form that is referenced via an accessor, I want to filter it by returning the index that matches the search term from the input field. ts file //accessors get listAccessor() { ...
Tank's user avatar
  • 1
1 vote
1 answer
751 views

I'm facing an issue while implementing filter on primeng p-table with formarray controls, Filter didn't work properly, So registered custom filter and tested then the value is null for all the rows, ...
Ganesan Mani's user avatar
0 votes
1 answer
286 views

trying to create a formarray of multiple formgroups, the issue I am facing is kind of strange, the formcontrols present in last element of formarray , is not taking input values add-modules.ts file ...
Ash Pardhi's user avatar
0 votes
0 answers
22 views

I used drag and drop on nested form array. It has lot of fields. After drag and drop how can I get rearranged formArray list by this.columnsArray(i).value? dropRow(event,i) { moveItemInArray(this....
arthy's user avatar
  • 1
0 votes
1 answer
63 views

I have array (gifts) of objects, after filled valid form by user, I want to check which checkboxes are checkIn, next push name of selected gifts into giftsArr and on submit-action push into gifts ...
DaroGawlik's user avatar
2 votes
1 answer
3k views

For a variety of reasons, I need to have a formArrayName directive applied to a div with as a child a ng-container with a ngTemplateOutlet. Let me clarify it with HTML templates. The following ...
Wouter V's user avatar
1 vote
1 answer
2k views

I have angular reactive form consisting of few FormControl and one FormArray element. competitionForm!: FormGroup; this.competitionForm = new FormGroup({ name: new FormControl(this....
mikeasto97's user avatar
1 vote
2 answers
972 views

I have a form array in my angular form. I want to apply validation to this form array. If the form array is empty the submit button should be disabled. The condition for submitting the form is that it ...
Greeshma G's user avatar
0 votes
1 answer
864 views

I have a formGroup which has a formArray, which contains of {key: '', value: ''} formGroups. I want to make the value formControl to be required when the key formControl is not empty. I have ...
Shafkhan's user avatar
  • 524

1
2 3 4 5
13