Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
terencejeong opened this issue Feb 13, 2020 · 0 comments

Comments

@terencejeong
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant