© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
bernhard

Form is not updated after saveRelationshipsUsingCallback

I am creating a new form field, which is based on a relationship.

In the
saveRelationshipsUsing
saveRelationshipsUsing
, I am setting the new values with the
->state()
->state()
method. I tested it one line later with
dd
dd
and I can see the correct values. The problem is, that the form field doesn't get the new values. It keeps the old ones. After a page refresh I can see the new ones (so the save process is working).

I tried to debug it, by adding a
dd
dd
into the
afterStateHydrated
afterStateHydrated
callback (not on page load, just before I click on save). There I still have the old values as well.
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

Auto Jump to next form input after field is updated
FilamentFFilament / ❓┊help
3y ago
Table action button is not getting updated after action executed
FilamentFFilament / ❓┊help
3y ago
Css change after form Page is loaded
FilamentFFilament / ❓┊help
3y ago
Form does not revalidate after change value
FilamentFFilament / ❓┊help
2y ago