Submit is visible in wizard even if it's not the last step

Hi Not sure if it's by design or a bug, but it seems like the 'Submit' is visible on all 'steps' of a wizard, even if you are not on the last page
7 Replies
Dan Harrin
Dan Harrin2y ago
sounds like you set it up wrong
rabol
rabolOP2y ago
🫣
return [
MyFilamentWizard::make($steps)->skippable(),
];
return [
MyFilamentWizard::make($steps)->skippable(),
];
` Aha so the skippable makes the submit to appear
Dan Harrin
Dan Harrin2y ago
hm that shouldnt be the case probably?
rabol
rabolOP2y ago
If it’s skippeable, then the validation / required should off, or ?
LeandroFerreira
Yes, but the submit button should show on the last step
rabol
rabolOP2y ago
Crap.... I used the blade from the documentation
<div>
<form wire:submit.prevent="submit">
{{ $this->form }}

<button type="submit">
Submit
</button>
</form>
</div>
<div>
<form wire:submit.prevent="submit">
{{ $this->form }}

<button type="submit">
Submit
</button>
</form>
</div>
I don't think a form is needed when working with the wizard, correct ?
LeandroFerreira
Remove the submit button and use the submitAction method. Take a look: https://filamentphp.com/docs/2.x/forms/layout#wizard
Filament
Layout - Form Builder - Filament
The elegant TALL stack form builder for Laravel artisans.
Want results from more Discord servers?
Add your server