Is there a way to update the value of the "send_diagnostic_data" field in a separate function?
private generateForm(): void {
this.messageForm = new FormGroup({
message: new FormControl(''),
date: new FormControl(new Date()),
messageType: new FormControl('sent'),
send_diagnostic_data: new FormControl(false),
});
}