JC
Explore posts from servers$livewire->form->fill() doesn't work when using slideOver()
okay I think I understand. so what you're saying is that outputting a form in a modal vs it's own route significantly changes how it's rendered and in the case of the modal it's then too late to create an action to fill it?
42 replies
$livewire->form->fill() doesn't work when using slideOver()
so when I have a dedicated CreateCampaign route, the $livewire in line 84 allows me to do $livewire->form->fill() and it works. but when I use a slideOver the $livewire reference is the ViewCampaign component (i.e. the page with the button on). so I guess I need a way to access the form via the ViewCampaign page.
42 replies
$livewire->form->fill() doesn't work when using slideOver()
This is my
app/Filament/Admin/Resources/CampaignResource.php
https://gist.github.com/joeczucha/4512e9c3726141d64ae66f9e723080f0
line 74+42 replies
$livewire->form->fill() doesn't work when using slideOver()
I started with it as a route to check that the "Insert test data" button was working (it was) but then removed the route and switched to the slideOver which is where the error started occurring.
The
The
Actions...
snippet above is part of the form definition of the CampaignResource
so I thought that the $livewire reference would be the form but it seems to be the ViewCampaigns
component (which is the one that has the modal-triggering button on it).
I'm just looking for a way to fill a slideOver form 🙂 given that $livewire->form doesn't seem to work42 replies