0

I was able to use vuelidate very well to validate my forms. Now I have two tabs and in one tab a form to login and on another tab a form to register. I have to validate only one of two forms.

When I switch to the login form, the form should be only login form validation conditions should be checked.

If I switched to sign up form, and press submit button. Only the sign up form should be validated.

How can we do that?

user866933
  • 305
  • 1
  • 6
  • 16

1 Answers1

0

I know it is a bit late, but maybe it may help someone. I think the easier way to do it, is splitting each tab up in a different component and in each one you use vuelidate as normal.

aquilesb
  • 2,182
  • 1
  • 19
  • 19