[Vuejs]-Setting Vee-Validate initial value from API

3👍

if you use vee-validate: "^4.6.9" and vue: "^3.2.39" maybe can use this solution :

  1. add new atribute :initial-values="formValues" in tag form
  2. then inside setup() add:
const formValues = {
  yourFieldName: 'init value',
};
  1. still in setup() return { formValues }

this work for me 😀

👤addin

Leave a comment