-
Notifications
You must be signed in to change notification settings - Fork 35
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
Adding errors directly to fields #32
Comments
Neat, realized that the But otherwise I can still handle this issue on my end. Cheers. |
Hi, A v2 of svelte-forms has been released that fixes this use case. |
@chainlist I've just ran into this issue, looking through the v2 documentation I don't see anything about manually setting errors. I've also noticed some of the sidebar links don't go to the right sections |
This issue was closed, but it is still not clear how to add errors from server (or API). When I submit form, server side validation can return additinal errors related to particular field, how can I add these errors to field to render it? I have tested today several solutions but nothing was working. These errors from server were not rendered in form. This seems to be common requirement. |
can find anything related :/ |
ok, maybe I have found the problem, even when forceValidation is set to false, options.validateOnChange is triggering validation and overwrites my custom errors, unfortunately I cannot disable it because this will affect user experience, but I need a method to set it without triggering any validation, otherwise it will overwrite my custom errors, any suggestions? |
Could we add support for adding errors directly into the fields somehow?
A typical use case would be to handle errors from an API after it has been called.
The text was updated successfully, but these errors were encountered: