Chana Duparc
Chana Duparc

Reputation: 1

Disabled input not submitting in Angular15 even when using getRawValue()

I have a form that contains an internal form as follows:

this.formGroup = this.fb.group({ generalRequest: new UntypedFormControl(), });

In the internal form - generalRequest, there is a field that is locked under a certain condition using disable().

When sending the form the locked field is not sent, even though I use getRawValue().

It seems that he has a problem with the fact that it is a form within a form, because in a normal form I see that this problem does not occur....

Upvotes: 0

Views: 24

Answers (0)

Related Questions