akash sagar
akash sagar
FFilament
Created by akash sagar on 5/1/2024 in #❓┊help
how to perform some stuff before dispatching an event in action
hi @David Vincent , thanks for replying i have not tried what you have recommended instead i am doing this #[On('clear-form')] public function clearFormFileds() { $this->form->fill(); } i have generated event listener and put that $this->form->fill(); inside and it is working fine, can you please let me know is it correct way or is it good practice ?
3 replies
FFilament
Created by Gediminas on 11/23/2023 in #❓┊help
Custom form action help
hello i am new to filament i have created this action which is dispatching an event 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 know where i should use this ?
10 replies