Jesse
Jesse
FFilament
Created by Jesse on 1/30/2025 in #❓┊help
[WIZARD] Next and submit button do not change after Wizard\Step becomes visible.
@ChesterS Lots of tears later, but I found the issue! It appears something is going wrong with the ‘x-show’ property. After changing it to ‘x-bind:class’ everything works fine. I’ve opened a PR to resolve this: https://github.com/filamentphp/filament/pull/15493 Thanks for your help! 🎉
8 replies
FFilament
Created by Jesse on 1/30/2025 in #❓┊help
[WIZARD] Next and submit button do not change after Wizard\Step becomes visible.
Here you can see the code of my form:
return [
Wizard::make([
Wizard\Step::make('Algemeen')
->schema([
Select::make('customer_id')
->label('Klant')
->relationship('customer', 'name')
->default(request('customer_id'))
->disabled(request()->has('customer_id'))
->searchable()
->reactive()
->required()
->options(Customer::pluck('name', 'id')->toArray()),
Select::make('product_id')
->label('Product')
->searchable()
->reactive()
->required()
->options(Product::pluck('name', 'id')->toArray()),
DatePicker::make('start_date')
->label('Startdatum')
->default(now())
->required(),
TextInput::make('reference')
->label('Referentie')
->placeholder('AB123456')
->required()
->hidden(fn ($get) => optional(Product::find($get('product_id')))->type === ProductTypeEnum::DOMAIN),
])->columns(2),
Wizard\Step::make('Domein')
->schema([

])
->visible(fn ($get) => optional(Product::find($get('product_id')))->type === ProductTypeEnum::DOMAIN),
])
->columnSpanFull()
]
return [
Wizard::make([
Wizard\Step::make('Algemeen')
->schema([
Select::make('customer_id')
->label('Klant')
->relationship('customer', 'name')
->default(request('customer_id'))
->disabled(request()->has('customer_id'))
->searchable()
->reactive()
->required()
->options(Customer::pluck('name', 'id')->toArray()),
Select::make('product_id')
->label('Product')
->searchable()
->reactive()
->required()
->options(Product::pluck('name', 'id')->toArray()),
DatePicker::make('start_date')
->label('Startdatum')
->default(now())
->required(),
TextInput::make('reference')
->label('Referentie')
->placeholder('AB123456')
->required()
->hidden(fn ($get) => optional(Product::find($get('product_id')))->type === ProductTypeEnum::DOMAIN),
])->columns(2),
Wizard\Step::make('Domein')
->schema([

])
->visible(fn ($get) => optional(Product::find($get('product_id')))->type === ProductTypeEnum::DOMAIN),
])
->columnSpanFull()
]
8 replies