4,910 questions
2 votes
2 answers
87 views
Unable to show/get date values from formarray.controls
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 ...
1 vote
1 answer
64 views
Set default value from JSON database in form
I have a form which displays some inputs with their value that I get from my JSON database, and I want to have the possibility the update them if needed. Here's the HTML: <!-- Start form to update ...
1 vote
3 answers
101 views
How to keep only a specific field from a Form Group active when disabling an Angular form?
I have a reactive form in Angular where when a specific field active_deActive is changed, I want the entire form to be deactivated, but the field itself to remain active so that the user can change it ...
1 vote
2 answers
115 views
Angular 20 Reactive Forms - Custom validator based on signal
Here's the StackBlitz showing the problem. I have a reactive form with an Email field and Send Verification Code button. When the code is sent, the Verification Code field appears, so the user can ...
2 votes
2 answers
66 views
Angular Reactive Form still includes empty values in form.value even after applying validators
I'm using a Angular 20 with Reactive forms. Even after applying Validators.required to some controls, the form still includes empty string ("") or Null values when I log or submit form. I ...
0 votes
1 answer
87 views
How to disable radio button on all levels in a recursive Angular form component based on a specific level's value
this is kind of a continuation of an improved version of an old question of mine so basically I have a recursive Angular form and I’m using to manage a folder hierarchy. Each folder has a radio button ...
2 votes
1 answer
114 views
Why doesn't the form display the datepicker?
I'm trying to display a form that consists of two fields: input and datepicker. However, the datepicker doesn't display. Instead, I see the following error message in the console: ERROR RuntimeError: ...
2 votes
0 answers
67 views
Form not updated when Browser auto-fills saved email/password until user interaction [duplicate]
I have a login form in Angular 16 with FormGroup validation. When I open the login page in Chrome, the browser auto-fills the saved email and password fields. The values are visible in the input ...
1 vote
1 answer
45 views
If show template with disabling a form at the same time - then a form not disabling
Working on a form with two templates. It seems that if we change template + setting form as disabled, the form is not disabling. But if we do it with separate thread via setTimeout, we have corrent ...
1 vote
1 answer
40 views
how to detect formly toggle field type is disabled?
I have a formly form with toggle field, I would like to detect when the user clicks on the toggle to disable it. here is what I have done so far: fields: { key: myToggle, ...
3 votes
1 answer
79 views
Ionic Standalone Component - FormControlName
I have a form, reflected with some Ionic components: <form [formGroup]="loginForm" (ngSubmit)="loginForm.valid && login(loginForm.controls['email'].value, loginForm.controls['...
0 votes
1 answer
87 views
How to save data from multiple forms on button click function? [closed]
I have succeeded in creating multiple forms based on the value from the dropdown list, but I am not able to save the data from the input element into database. If my dropdown list displays the value 5,...
1 vote
2 answers
83 views
Angular FormGroup doesn’t get disabled when it contains an empty FormArray _and_ a custom form control
I have a simple FormGroup in an Angular component: // app.component.ts, part 1 export class AppComponent implements OnInit { protected form = new FormGroup({ ctl: new FormControl(), arr: new ...
0 votes
2 answers
98 views
Cant set reactive form value null
I'm using ngxDaterangepickerBootstrap to show calendar in a reactive form with a form control name call initialDate. in component.ts biller: new FormControl(null, [ Validators.required ])...
1 vote
1 answer
59 views
SetValue is not triggering Dropdown's (change) function
In Angular 19, I need a function to run when a dropdown changes value. However, it doesn't happen when using setValue. html <select id="dropdown" [formControl]="dropdown" (...