Skip to content

Any super simple two-way binding checkbox input examples using useField? #4094

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

You must be logged in to vote

Did you check this example?. Generally checkbox boxes have two values:

  • The value to set when they are checked which is commonly referred to as value or checkedValue but never modelValue.
  • The current group value for the checkbox (even if single one), this is referred to as modelValue in most vue implementations.

vee-validate follows those conventions however it could get confusing. Do you have a sample for your code where you can't get it to work? put it in a sandbox and I can help. Otherwise the example should guide you towards getting it to work.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by rwfresh
Comment options

You must be logged in to vote
0 replies
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