Validate single field onSubmit instead of onBlur #12163
Unanswered
BrendanC23
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, I am using validating my form using
onBlur
.I have a form that can be used to either add new data or edit existing data. I have an input for an
id
value where the user can eitherreset
s the form with data from a database)This causes issues because the input is validating
onBlur
, which causes an error message to be shown when a user does not enter anything. Is there a way to keep most of the inputs validatingonBlur
, but to change a single input to validateonSubmit
?Beta Was this translation helpful? Give feedback.
All reactions