[LiveForm] $this->formValues doesn't work #2908
Replies: 3 comments
-
I was on symfony 7.2 and live components 2.3 |
Beta Was this translation helpful? Give feedback.
-
I noticed that form field (using ComponentWithFormTrait) doesn't change itself when it's selected... strange |
Beta Was this translation helpful? Give feedback.
-
I'm sorry, but I'm not sure I fully understand what you were trying to do. However, I'm fairly certain this isn't a documented feature :) So the 'bug' classification might be a bit... overstated. Now, here is some part that may interest you: https://symfony.com/bundles/ux-live-component/current/index.html#dynamically-updating-the-form-in-a-liveaction |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug:
When I change payload from frontend with
$this->formValues
I expect the form to be rerendered with changed data, BUT form renders as though I didn't change the payload wihtthis->formValues
Description:
I have a live form, then type something (for triggering an AJAX), method
instantiateForm
is called and in this method I change user's payload with$this->formValues
live prop, then I expect to see changes accrdingly my changes in$this->formValues
live prop, BUT I see data that haven't been changed.Reproduce:
CustomFormType
LiveFormClass
Maybe it's because of DateTimeType?!
Beta Was this translation helpful? Give feedback.
All reactions