Skip to main content

All Questions

1 vote
1 answer
306 views

Getting "ERROR TypeError: Cannot read properties of null" on Angular Reactive forms submit button and Reactive form is not working

My reactive form is not working at all, with all the validations failing. Any of the validations are not appearing on screen at all and the Save button when clicked is giving the following error in my ...
Wakashio1234's user avatar
0 votes
2 answers
989 views

Display Reactive form data on same page after click on Save button in Angular10

I have a reactive form and once user click on Save button it should show the save data on the same page in a block and once user click on Submit it should call the api. How can I show the reactive ...
Ana's user avatar
  • 31
0 votes
0 answers
637 views

Form group validator is overriding the form control validator in Angular 10

I am using angular 10 reactive forms. I have around 5 form controls. Each has its own validations. I am also required to compare values of two form control and based on the input value, need to assign ...
JSR246's user avatar
  • 11
0 votes
1 answer
696 views

Angular - Template(input filed) does not reflect value in FormGroup Model

I have a dynamically generated FormGroup based on a JSON Shema: private parse(shema: object, required: boolean = true) { if (shema["type"] === "string") { return new ...
Lynxara's user avatar
0 votes
1 answer
2k views

Angular- Hide button till certain conditions are met

I made a reactive form, where user can add data. There I have added a add button and a remove button. While clicking the add button user can add more input fields and remove those fields while ...
user avatar
0 votes
1 answer
220 views

How to structure or build form for the repetitive set of fields in angular 10?

<div class="card"> <div> <span>Level </span> </div> <ul> <li> <div *ngFor="let sensorType of sensorsEnum"> <mat-form-...
Guru Prakash Ram's user avatar
0 votes
0 answers
109 views

Binding complex model to nested Angular Reactive FormGroup

I have a data object with several layers of arrays and objects, similar to this simplified example. When running this and using the patchValue method as described in the documentation, only the first ...
Mason240's user avatar
  • 3,034
1 vote
0 answers
20 views

RROR Error: Cannot find control with path: 'IncomeList -> verified'

I am creating dynamic reactive form using Angular 10, it has the nested structure, when I try to bind the form to the template I have the below errors **The main form has below structure ...
Fathima's user avatar
  • 51
0 votes
1 answer
942 views

how to add validation to form in angular?

I have 2 input in reactive forms. for example: birthdate and date, I want to add Validation to date, that date's minimal value must be birthdate or more. How can I solve it? I try this way, but it ...
John Doe's user avatar
  • 130
0 votes
1 answer
648 views

On page refresh , set default value of drop down on angunlar 9

Here is my HTML file I am using p-dropdown: <p-dropdown id="userType" name="userType" inputId="userType" formControlName="userType" [required]=&...
mohammad mazharul hoque's user avatar
0 votes
1 answer
2k views

Angular Reactive form control is marked as ng-invalid when errors property is empty

So I have an (Angular 10) reactive form with a number of input components like this one, each created dynamically in an ngFor loop: <div [id]="this.getDivElementId()" class="...
ChargerIIC's user avatar
  • 1,680
-2 votes
1 answer
3k views

Angular Reactive Forms, patchValue not working, nested forms

Stackblitz code Angular, Reactive Forms, Material UI, I have nested forms setup in split components. I have some fake data setup with InMemoryWebAPI, some of the properties are coming up as undefined ...
AlisonDev's user avatar
0 votes
1 answer
1k views

Angular Reactive Forms - Repeat objects

I am a newbie to Angular 10 (jumped from Angularjs to Angular) and I am facing some problems I have a multiple objects in database like this : { "id" : 1, "search_name" : "...
AmenzO's user avatar
  • 409
3 votes
2 answers
7k views

Angular: Make Form Values ReadOnly Greyed Out And Data Getter Valid with Typescript

Is there anyway to make a form greyed out readonly, While making the form values acquirable? 1/This will not work control.disable() in Typescript, as I cannot acquire the values of Id, Name, ...
earlwaltonluv3462's user avatar
0 votes
1 answer
46 views

Working with reactive form using angular 10

I am working on application using angular 10 with reactive form. My scenario is I have parent form in which I am using Form array which came with list of records. The problem I am facing is when I ...
Exalted Solutions's user avatar

15 30 50 per page