How to stop going back on Form Wizard once a certain step is reached?

Say once I reached step 3 on a form wizard. I want the back button to disappear on Step 3 The user can still go to step 4 and go back to step 3. But step 2 and step 1 should be impossible once step 3 is reached. Any idea how to achieve this?
1 Reply
Auth1Specialist
I have something like this, this shows a button on a certain step:
->submitAction(new HtmlString(Blade::render(
<<<BLADE
<x-filament::button
wire:click="createDocument"
wire:key="createDocument"
id="createDocument"
size="sm"
class="py-2 px-3"
x-show="!getSteps().includes('send')"
>
@lang('financials.create_document')
</x-filament::button>
BLADE
)))
->submitAction(new HtmlString(Blade::render(
<<<BLADE
<x-filament::button
wire:click="createDocument"
wire:key="createDocument"
id="createDocument"
size="sm"
class="py-2 px-3"
x-show="!getSteps().includes('send')"
>
@lang('financials.create_document')
</x-filament::button>
BLADE
)))

Did you find this page helpful?