FilamentF
Filament2y ago
seya

Action to change active form tab

I wanted to make a Wizard-like Tabs with next and previous buttons, how do I do this? The reason I use tabs is because it's more simple and I can use badges.

My current solution is to add on-click listener on the button, but pressing enter will just submit the form
Actions::make([
    Actions\Action::make('next')
        ->extraAttributes([
            'x-on:click' => 'tab = `-name-tab`'
        ])
])
Was this page helpful?