F
Filament17mo ago
Tiber

Fill form after mount in v3?

I have a form next to a table, and the form contents change based on what record the user clicks in the table. In v2, I was able to call $this->form->fill() from anywhere in the component, but in v3 it only seems to work if I call it from mount(). Is there a different way I should be doing this now?
2 Replies
Patrick Boivin
Patrick Boivin17mo ago
Interesting, I'm not sure but maybe I'm running into the same issue... Are you getting any errors? (livewire modal or browser console)
Tiber
TiberOP17mo ago
Smh, didn't even think to check the browser console. Getting: Livewire Entangle Error: Livewire property 'data.xyz' cannot be found. for each data element. (where xyz = the property name) ooooh, okay, I think I see the issue. I just don't have it set up properly for v3. At least I think...although it does still fill it if I do it on mount... Turns out it is filling the $data object correctly, it just isn't updating visually in the form for some reason...
Want results from more Discord servers?
Add your server