© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
45 replies
Mark Chaney

Forms, Modals, ViewField and $livewire

Appears I can easily use $livewire in an ->afterStateUpdated to set something like $livewire->criteria = Criteria::find($state);, which then i can acccess from my ViewField with $this->criteria. But as soon as I try that same form in a modal, its no longer available. I need this form with a ViewField to work in both a standalone livewire component and a action modal. Ive set public $criteria on the livewire component, but assuming because if the modal, its not available. Suggestions?
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament 3 page with custom livewire forms modals
FilamentFFilament / ❓┊help
3y ago
Use Livewire pagination inside a ViewField
FilamentFFilament / ❓┊help
3y ago
Forms as Livewire component and Form Restoration
FilamentFFilament / ❓┊help
15mo ago
viewfield
FilamentFFilament / ❓┊help
3y ago