JC
JC
Explore posts from servers
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
amazing, thank you so much @Leandro Ferreira
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
I'm still no closer to getting this working, if anyone else has any thoughts 🙂
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
Can I just ask which aspect of the code suggests that I'm trying to use a route AND use a modal? If I've removed the Create line from getPages() array does that not disable the route?
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$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
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
so no way to fill the form, except for using $set?
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$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
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
line 84 is where I'm calling it
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
thanks Matthew, I tried a few combinations of $this, $self, etc. Your example gives me this error:
Using $this when not in object context
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
No description
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
and it works in this layout.
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
No description
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
ah I see. I had looked at $set but could only find examples of doing one field at a time rather than the whole form
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$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
FFilament
Created by JC on 4/7/2025 in #❓┊help
$livewire->form->fill() doesn't work when using slideOver()
"but your resource is defining a route" - in what way? I thought removing the create route from getPages() was sufficient if I planned on using a modal?
42 replies
FFilament
Created by JC on 4/7/2025 in #❓┊help
$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 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 work
42 replies
NNuxt
Created by JC on 4/5/2024 in #❓・help
:class not reactive when using SSR
Hi @Fabian B., using .value made no difference, though i shouldn't need to use that in teh template I don't think
3 replies