html form post disabled fields code example
Example 1: how to fix input field and disabled
<input type="text" readonly="readonly" />
Example 2: form control adding disabled and validators
value: string;
isDisabled: boolean;
//isDisabled and value come from your dynamic data.
fb: FormBuilder;
myGroup: FormGroup;
this.myGroup = fb.group({
form_control_name: new FormControl({
value: this.value,
disabled: this.isDisabled,
Validators.required)}
);