Skip to content

Exclude or Omit field in submit #3638

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

You must be logged in to vote

vee-validate will always retrieve the values "present" in the form data as long as they have been changed at least once. If you want to clean up the values you should do that on your own with lodash or any other utility you have.

I don't think vee-validate should do this because, in the realm of custom components, any custom value can be "optional" like an empty string or the current date value.

Replies: 1 comment

Comment options

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