-
I'm building a custom phone number field using react-phone-input-2 and using JSON schema to build my forms. The Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
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 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. |
Beta Was this translation helpful? Give feedback.
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.