Skip to content

Is it possible to allow custom field component validation to invalidate a form? #901

Answered by radekmie
asibilia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @asibilia. There's no easy way of doing so. You could hoist this error up above the form and add it to the current error using onValidate.

Separately, why wouldn't you extend your schema to include this validation as well? It's crucial not to rely on the UI when it comes to validation. And by using custom keywords it could be made quickly.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@asibilia
Comment options

@radekmie
Comment options

@asibilia
Comment options

@simplecommerce
Comment options

@radekmie
Comment options

Answer selected by asibilia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants