Skip to content

How can I dynamically disable validation for a particular field? #4473

Answered by logaretm
hackel asked this question in Q&A
Discussion options

You must be logged in to vote

Use computed.

useField(name, computed(() => disabled.value ? '' : 'required'));

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@cesxhin
Comment options

@logaretm
Comment options

Answer selected by hackel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants