How do you make the submit button of a form wizard do a require confirmation dialog?

Currently in the docs, to add a submit button, I have to do this:


Wizard::make([
    // ...
])->submitAction(new HtmlString(Blade::render(<<<BLADE
    <x-filament::button
        type="submit"
        size="sm"
    >
        Submit
    </x-filament::button>
BLADE)))


But it seem like there is no way for me to add a ->requiresConfirmation to the submit button to give some warning before they confirm again to submit
Was this page helpful?