How to get values from disabled form controls in a form group? How to get values from disabled form controls in a form group? angular angular

How to get values from disabled form controls in a form group?


This is not an issue, is the expected behavior. If you'd like to include all values regardless of disabled status, use the following:

this.userForm.getRawValue()


Thank you @jota-toledo for getting me 80% what I needed.

For those of you looking for a solution to the same problem but for nested forms I was able to solve by changing my usual

this.userForm.get('nestedForm').value

to

this.userForm.getRawValue().nestedForm


If someone is looking for solution to get the disabled FormControl of FormArray in a FormGroup.

Try this -(this.formName.controls['formArrayName'] as FormGroup).getRawValue();