© 2026 Hedgehog Software, LLC

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

Refresh page data from resource form action

I need to call
refreshFormData
refreshFormData
(https://filamentphp.com/docs/3.x/panels/pages#refreshing-form-data) from an action within a resource form, but that method is on the page. How can I access the page component from the action method?
Pages - Panel Builder - Filament
Solution
I managed to get this fully working with:
->action(function (array $data, Forms\Components\Repeater $component) {
    Chapter::create($data, ...);
    $component->clearCachedExistingRecords();
    $component->fillFromRelationship();
})
->action(function (array $data, Forms\Components\Repeater $component) {
    Chapter::create($data, ...);
    $component->clearCachedExistingRecords();
    $component->fillFromRelationship();
})

Thanks again for your help!
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Refresh form data on action
FilamentFFilament / ❓┊help
3y ago
custom page form from resource
FilamentFFilament / ❓┊help
11mo ago
how refresh page resource index after imported action
FilamentFFilament / ❓┊help
14mo ago
Refresh current resource page
FilamentFFilament / ❓┊help
2y ago