© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•14mo ago•
7 replies
treii28

how to update state in custom field?

How do I update an entangled state variable so that the filament form knows the value has been updated?

I have a class that gets passed the state via $wire.$entangle({{ $getStatePath() }}')

In this case, I'm setting the state from an array of lat/lon coordinates [ 'lat' => 12, 'lon' => 45 ] in an array.

If in my javascript I then set state.lat = 56, how can I make sure laravel/filament knows it has changed so the ->afterStateUpdated() triggers?
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

How to store extra data in custom field except state?
FilamentFFilament / ❓┊help
2y ago
how to live update custom form field
FilamentFFilament / ❓┊help
14mo ago
load and store state in custom field
FilamentFFilament / ❓┊help
2y ago
Update field state from alpine
FilamentFFilament / ❓┊help
3y ago