© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
2 replies
akash sagar

how to perform some stuff before dispatching an event in action

public function clearAction(): Action
{
return Action::make('clear')
->size(ActionSize::Large)
->dispatch('clear-form');
} this action is clearing localstorage but i also want to clear form data along with this, for that i want to do this $this->form->fill(); can anyone please help me where i should use this ?
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

Dispatching an event from an Action
FilamentFFilament / ❓┊help
3y ago
Dispatching Event after Action
FilamentFFilament / ❓┊help
3y ago
How to perform action before saving relationships?
FilamentFFilament / ❓┊help
3y ago
How to dispatch an event from an Action
FilamentFFilament / ❓┊help
16mo ago