Hidden save and cancel button in form wizzard?

Hey guys, how can hidde or delete the button save, save other and cancel when i use a wizard inside a form? thank you
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Mes de cobro')
->schema([
Forms\Components\TextInput::make('mescobro')->type('month')
->label('Mes en que se cobrara')
->required()
->reactive(),
Forms\Components\DatePicker::make('vencimiento')
->label('Seleccione una fecha de vencimiento')
->required(),
])
->columns(2),
Forms\Components\Wizard\Step::make('Consumo Medidores')
->schema(function (callable $get) {
return [
GaugeConsumptionList::make('gauge_consumption_list')
->label('Lista de Consumo de Medidores')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Ingresos')
->schema(function (callable $get){
return [
ProofIncomeList::make('proof_income_list')
->label('Lista de ingresos del mes')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Egresos')
->schema(function (callable $get){
return [
ExpenseList::make('expense_list')
->label('Lista de egresos del mes')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Generar Gasto Común')
->schema([]),
])
->submitAction(new HtmlString('<button type="submit">Generar Calculo</button>'))
->columnSpanFull()
->persistStepInQueryString('wizard-step'),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\Wizard::make([
Forms\Components\Wizard\Step::make('Mes de cobro')
->schema([
Forms\Components\TextInput::make('mescobro')->type('month')
->label('Mes en que se cobrara')
->required()
->reactive(),
Forms\Components\DatePicker::make('vencimiento')
->label('Seleccione una fecha de vencimiento')
->required(),
])
->columns(2),
Forms\Components\Wizard\Step::make('Consumo Medidores')
->schema(function (callable $get) {
return [
GaugeConsumptionList::make('gauge_consumption_list')
->label('Lista de Consumo de Medidores')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Ingresos')
->schema(function (callable $get){
return [
ProofIncomeList::make('proof_income_list')
->label('Lista de ingresos del mes')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Egresos')
->schema(function (callable $get){
return [
ExpenseList::make('expense_list')
->label('Lista de egresos del mes')
->extraAttributes(['mes_cobro' => $get('mescobro')]),
];
}),
Forms\Components\Wizard\Step::make('Generar Gasto Común')
->schema([]),
])
->submitAction(new HtmlString('<button type="submit">Generar Calculo</button>'))
->columnSpanFull()
->persistStepInQueryString('wizard-step'),
]);
}
No description
4 Replies
toeknee
toeknee6mo ago
Is this a page or a modal?
TranceCode
TranceCodeOP6mo ago
no bro. is a normal page! @toeknee
Expecto Patronum
You can apply on edit and create page protected function getFormActions(): array { return []; }
TranceCode
TranceCodeOP6mo ago
Thank you so much bro, it's working the code!
Want results from more Discord servers?
Add your server