F
Filament14mo 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`'
])
])
Actions::make([
Actions\Action::make('next')
->extraAttributes([
'x-on:click' => 'tab = `-name-tab`'
])
])
1 Reply
kailash sahu
kailash sahu2w ago
have you get any solution for the above issue ?

Did you find this page helpful?