Skip to content

REQUEST: include setFieldError to runAction function so user can set per-field server-side errors. #7

@terencejeong

Description

@terencejeong

I think it would be valuable for the setFieldError function from the Formik ref to be available to use in the actions.

USECASE:
When a form is submitted we can fire off a custom submit-action. If we get an error response from the server we can set the error on the corresponding input by using setFieldError.

The change would be minimal, but open for discussions on why or why not this is needed.
Screen Shot 2020-02-13 at 11 13 20 am

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