Skip to content

onValidate multiple errors #87

Closed
Closed
@stuthemonkey

Description

@stuthemonkey

I'd like to know if there is a way on the onValidate to return multiple elements to flag as errors? Currently everything I have tried will only allow for returning a single element to error on.

Basically I have a form, that each input has a custom validation on if a value is supplied and its the wrong length then error. However I want the form on submit to check that at least one field is populated. If none are, then i want to either flag all fields as invalid, or put a validation message at the top saying at least one field is required.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions