Enable / Disable Wizard Next step button

Hi. Is there a way to enable or disable the next step button? I want to enable it when all required fields are completed. Thanks
1 Reply
Proks D
Proks D6mo ago
I needed to remove the button entirely. If you want a custom action just remove ->view and treat as a normal action. Here is two examples: Wizard previusAction
->previousAction(
function (Action $action) {
return $action
->view('prev-button')
},
)
->previousAction(
function (Action $action) {
return $action
->view('prev-button')
},
)
resources > view > prev-button.blade.php
[empty file]
[empty file]
Wizard nextAction:
->nextAction(
function (Action $action) {
return $action
->label('Next')
->requiresConfirmation();
},
)
->nextAction(
function (Action $action) {
return $action
->label('Next')
->requiresConfirmation();
},
)
Want results from more Discord servers?
Add your server