Angular 2 disabled controls do not get included in the form.value Angular 2 disabled controls do not get included in the form.value angular angular

Angular 2 disabled controls do not get included in the form.value


You can use:

this.notelinkingForm.getRawValue()

From Angular docs:

If you'd like to include all values regardless of disabled status, use this method. Otherwise, the value property is the best way to get the value of the group.


Another option that I use is:

this.form.controls['LinkToPreceeding'].value;


Thank you @Sasxa 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.notelinkingForm.get('nestedForm').value

to

this.notelinkingForm.getRawValue().nestedForm