disable wizard next button
Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Customer')
->columns(2)
->schema(fn(): array => $this->getStepOneWizardFormSchema())
->afterValidation(fn() => $this->resolveCustomer()),
Forms\Components\Wizard\Step::make('Cart')
->schema(fn(): array => $this->getStepTwoWizardFormSchema())
->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),
Forms\Components\Wizard\Step::make('Checkout')
->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
])
->contained(false)
->columnSpanFull()
->nextAction(
fn(Action $action): Action => $action
// hide the button until we have a $this->customer
->hidden(true)
->disabled(true)
->livewireTarget(null)
), Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Customer')
->columns(2)
->schema(fn(): array => $this->getStepOneWizardFormSchema())
->afterValidation(fn() => $this->resolveCustomer()),
Forms\Components\Wizard\Step::make('Cart')
->schema(fn(): array => $this->getStepTwoWizardFormSchema())
->afterValidation(fn(Forms\Get $get) => $this->validateCartBeforeCheckout($get)),
Forms\Components\Wizard\Step::make('Checkout')
->schema(fn(): array => $this->getStepThreeWizardFormSchema()),
])
->contained(false)
->columnSpanFull()
->nextAction(
fn(Action $action): Action => $action
// hide the button until we have a $this->customer
->hidden(true)
->disabled(true)
->livewireTarget(null)
),Hello, I noticed that I cannot hide/disable the next button with the wizard nextAction. Can anyone guide me on how to disable the next button until specific conditions are met.