Skip to content

Schema blocked to submit form without checked #3643

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

You must be logged in to vote

I converted this issue to a discussion since it is better suited. This behavior is intended, your schema needs to match whatever you have. So if card is required and is not shown, it will still block the submission because it doesn't exist.

You can create a computed schema and include the card validation if the check variable is set.

In the future you can always check the errors to make sure you don't have dangling rules or you can also use the Vue devtools with vee-validate.

Here is the example:

https://codesandbox.io/s/vue-vee-validate-forked-mjurj?file=/src/components/HelloWorld.vue

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yurenlimbu
Comment options

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

This discussion was converted from issue #3641 on January 05, 2022 00:13.