formvuelate/formvuelate-plugin-vee-validate

Manually marking a field as invalid after the fact

hognevevle opened this issue · 1 comments

Is your feature request related to a problem? Please describe.
After submitting a form, the backend may return an error related to one of the fields (e.g. e-mail already in use). I want to signal an error for this specific field, but see no way of doing so.

Describe the solution you'd like
Not sure how the API would look...

Describe alternatives you've considered
Tried adding a new error to the initial-errors prop, but it does not seem to override the validation state.

Additional context

Hey @hognevevle thanks for opening all these issues/ideas. I think they all are pointing to the same problem, that we need to open up a way for plugins to pass back to the user certain methods/props. We're working on finding a solution that will have to be added to the core lib so that plugins like this one can leverage it.

Keep them coming :D