Skip to content

Submit form programmatically #3749

Answered by FreeLancerPT
FreeLancerPT asked this question in Q&A
Discussion options

You must be logged in to vote

Well i have figured out how to handle, the solution i have use : https://vee-validate.logaretm.com/v4/guide/components/handling-forms#form-values

My goal was when an input had more than 6 charcters (token) was submit the form i have done something like this:

<Form v-slot="{values}" >
<Field v-model="myfield" v-on:input="myfield.lenght === 6 ? handleForm(values) : null" />
</Form>

Than the handleForm handles and sends the values of the form.

Replies: 2 comments 1 reply

Comment options

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

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

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