Skip to content

Validation immediately upon form load #682

Closed
@AndrewIsh

Description

@AndrewIsh

Plunker

Example

Expected behaviour

When the form is loaded it is immediately validated.

Actual behaviour

The form is not validated upon load, it is not validated until the model changes and a validation is triggered by the watch on the model.

Are my expectations wrong, I'd have thought that sending the schemaFormValidate broadcast as the final action in the controller would trigger an immediate validation, showing the errors, but that's not the case. Am I doing something wrong?

@json-schema-form/angular-schema-form-lead

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions