F
F
fisherspoons2021-06-07 15:15:28
Vue.js
fisherspoons, 2021-06-07 15:15:28

How to add a state-based check?

Hello everyone, I use vuelidate for form validation, I ran into a problem that validation is not dynamically hung based on an additional state field in the object (this state changes true / false depending on whether the field is empty or not).
Now the form is always valid, maybe someone came across, I will be grateful

Sandbox example

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Red_Devi1, 2021-06-07
@fisherspoons

https://codesandbox.io/s/trusting-lewin-ub3tz?file...
https://vuelidate.js.org/#sub-validation-groups

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question