FilamentF
Filament13mo ago
ddoddsr

footerActions run when modal open and close

And both actions run when I click one of them. Even with out the ->schema section.
This is in a Relationanager :
public function form(Form $form): Form
{
    return $form->schema(static::formSchema());
}

public static function formSchema(): array
{
    return [
        Split::make([
            Section::make()
            ->schema([
                static::getContactInboxConversation(),
            ]) 
            ->footerActions([
                Action::make('previous_action')
                   ->action(logger('previous_action')),
                Action::make('next_action')
                   ->action(logger('next_action')),
            ])
            ->extraAttributes(['class'=>'no-padding'])
            ->id('reviewSection'),
        ])
    ];
}
Solution
You should pass an action or a closure to the action method

->action(fn () => logger('previous_action'))
Was this page helpful?