79397468

Date: 2025-01-29 16:37:54
Score: 3
Natty:
Report link

i have the same problem my solution was use setValues methot from Form example

<template>
  <Form ref="form" v-slot="{ meta }" :initial-values="initialValues">
    <Field name="email" />
    <button :disabled="!meta.dirty">Submit</button>
  </Form>
</template>

<script setup>
import { ref, onMounted } from 'vue';
import { Field, Form } from 'vee-validate';

const initialValues = ref({ email: 'mm' });
const form = ref();

onMounted(() => {
  // Dynamically set initial form values
  form.value.setValues({ email: '[email protected]' });
});
</script>
Reasons:
  • Blacklisted phrase (1): i have the same problem
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): i have the same problem
  • Low reputation (0.5):
Posted by: juan carlos peña cabrera