You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, is there any way to run validation in a case where form gets populated with default values and can be only valid if its values while submitting are different from those default ones? One use case is if the user edit his comment and I don't want to trigger a request if he doesn't change the value. I'm interested in showing a validation error. Otherwise, it's not a problem to disable submit button or call event.preventDefault() but it's not what I want.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey, is there any way to run validation in a case where form gets populated with default values and can be only valid if its values while submitting are different from those default ones? One use case is if the user edit his comment and I don't want to trigger a request if he doesn't change the value. I'm interested in showing a validation error. Otherwise, it's not a problem to disable submit button or call
event.preventDefault()
but it's not what I want.Beta Was this translation helpful? Give feedback.
All reactions