Reset Angular Signal Form validation messages after submitting
15:47 20 Mar 2026

I have a problem with the validation messages.

I'm using bootstrap for the entire application, and I have a form for adding devices that is displayed through a bootstrap modal. All works fine, the problem comes when I click  add device a second time and I get all the error messages.

The problem is obviously that the touched Boolean does not reset after submitting, but I don't have any idea of how to reset it.

Sorry for my broken English.

@if (addForm.name().invalid() && addForm.name().touched()) {
                            
@for (error of addForm.name().errors(); track error.kind) { {{ error.message }} }
angular