Skip to content

Conditional validation on when the checkbox is checked. #3574

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

You must be logged in to vote

Since you are doing your conditionals on a yup schema using when, the isPhone should be a <Field> that exists in the form. You used the native input element which won't work.

https://codesandbox.io/s/vee-yup-conditional-forked-3f49m

Replies: 1 comment 2 replies

Comment options

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

@simonmaass
Comment options

Answer selected by logaretm
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