© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•13mo ago•
9 replies
Jack Sleight

Using value from parent livewire component in ViewField

I've added a form to a custom livewire component. The form contains a
ViewField
ViewField
, and within that view I need to check the value of one of my livewire component's props. I can't just do
$complete
$complete
, that gives an undefined error. If I pass the value in with
->viewData(['complete' => $this->complete])
->viewData(['complete' => $this->complete])
it works the first time but it's not reactive, when
complete
complete
changes the view is not updated. Any ideas?
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

ViewField in repeater with record data in livewire component
FilamentFFilament / ❓┊help
2y ago
Calling Action Modal from parent livewire component
FilamentFFilament / ❓┊help
3y ago
Forms, Modals, ViewField and $livewire
FilamentFFilament / ❓┊help
3y ago
Using Resource table in custom livewire component
FilamentFFilament / ❓┊help
2y ago