Skip to content

programmatic API to set errors (eg, by server validation errors) #86

Open
@carchrae

Description

@carchrae

Perhaps I missed some piece of documentation that shows how to do this, but I'm struggling with the following use case:

I would like to show server validation errors on a per-form basis rather than per-field. My application submits the form values via an AJAX like request and this returns success or a hash like

{ "errors" : { "username" : "this username is taken" } }

Now, I know you have support for a per field server validation, but I would really like to avoid writing an additional validator end-point for each form field. Also, note that in some cases, such an error could be the result of a combination of fields.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions