Skip to content

Conversation

@m0ksem
Copy link
Collaborator

@m0ksem m0ksem commented Dec 1, 2023

I see how I can create form data with a new form, but how would I prepopulate data?

I cant do myForm.formData.value = {} as SomeType, because .value is readonly. Is formData only able to used to create records and not edit them? I was wondering about this approach because I'm experiencing issues with clearing a form by setting the v-model object to empty or null which immediately fires the form validation. This happens wether or not I call reset() or try and use resetValidation() to clear messages.

Fix this example: https://ui-experimental.vuestic.dev/play#eNp9Ustu2zAQ/BVCFydAZAHJzVACNE0CpGjdoi1y4oWWVzYTvsCHY8PQv2dJWpLzgC+SODszO1ztvvhmzHQToJgVtWssN5448MEQwdTqmhbe0eKGKkK4NNp6sifBwYO2knSktVqSCYqd500Z+ISqyGy0cpHYIuuOeYbM6151NpG7+J6cU1VXuSHa48GDNIJ5SM3qJ5Z6WGgxQ5bQgjiPhDYI0gjmXKwsykvSCtimR9loQVbMlJeHzMnoUZngidRLEE9MBEDZL/bidtFQMRnPLbfOz/EbIcEWIBB7iBg5gNVJuzkstVvDZjTEeB/9fiL0hR0OCLLlLHmWm4OpglcSi2fno+2CW7++Y7sj29sIkWXCsm1d5eGlseIxiL6b4Df5VtFuRvbjL5oOEyBdV1dIHCUp+GdFf8XPgiHSe0Ef/lhQVyldXR39faqKiyJvWymZmT47rXA795FPDwVcSjTPLWkxbmCEabH23rhZVQVewtaA5RKUZyKueeRNl7Cpeo0OvpKMK2xDi2jYUdVhAO9wjVu++tC+0dJwAfa38RzX/F0MJoR+/ZEwbwNc9HizhublC/zZbXPePxYc2A1uxlDzzK7A5/L9vzls8Xso4qIEgewTxb/gtAgxY6bdBrXE2Ee8lPYxTZOr1X93v/WgXH+pGDRNI/HTiL+fuPoY92p6NUyxewPj83Vs

@m0ksem
Copy link
Collaborator Author

m0ksem commented Dec 5, 2023

Looks good for me after week + we tested it with experimental version.

@m0ksem m0ksem merged commit e671e4b into epicmaxco:develop Dec 5, 2023
@m0ksem m0ksem deleted the fix/default-value-for-stateful branch December 5, 2023 09:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant