Skip to content

Signals Forms: add a way to trigger the validation manually #66994

@geromegrignon

Description

@geromegrignon

Which @angular/* package(s) are relevant/related to the feature request?

forms

Description

With the Reactive Forms API, we are able to trigger the validation with updateValueAndValidity.

Some custom validator (especially async ones) are not idempotent: they might be false due to some third party actions between the reactive validation and the form submission.

Currently we have no way to trigger the validation manually.

Proposed solution

Having a dedicated function exposed on FieldState.

Alternatives considered

No idea

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions