F
Filament3w ago
Medo

Wizard Step depend on Select Value Causing Problem

I have Wizard That has One Step and this step includes ToggleButton to select I have another Step that is only visible with one of the select values using ->visible() method. " for sure select is live() " the problem is the function of the visible step works fine but there's no button to go to the next step.
No description
No description
10 Replies
Medo
MedoOP3w ago
Video Show the problem.
Medo
MedoOP3w ago
Here's Simple Example
Wizard::make([
Wizard\Step::make('First Step')->schema([
ToggleButtons::make('check_if')->boolean()->live()
]),
Wizard\Step::make('only_if_true')->schema([
TextInput::make('other_field'),
])->visible(fn(Get $get) => $get('check_if')),
]),
Wizard::make([
Wizard\Step::make('First Step')->schema([
ToggleButtons::make('check_if')->boolean()->live()
]),
Wizard\Step::make('only_if_true')->schema([
TextInput::make('other_field'),
])->visible(fn(Get $get) => $get('check_if')),
]),
No description
No description
Medo
MedoOP3w ago
up..
LeandroFerreira
GitHub
Wizard Step depend on Select Value Causing Problem · filamentphp fi...
Package Panel builder Package Version v3.2.117 How can we help you? I have Wizard That has One Step and this step includes ToggleButton to select I have another Step that is only visible with one o...
Medo
MedoOP3w ago
@LeandroFerreira Yes I have post it there as well 🙂
LeandroFerreira
I tried to add a wire:key random to update the whole form after updating the toggle status, but this didn't work..
Medo
MedoOP3w ago
Yes, I was thinking about it and already tried but no luck 😦 Up..
andrii3231
andrii32313d ago
Hello Any updates here? i have the same issue
andrii3231
andrii32313d ago
@Medo can be fixed using "template" tag File -> vendor/filament/forms/resources/views/components/wizard.blade.php
No description
Medo
MedoOP3d ago
@andrii3231 Correct this is the solution thank you, there's an Issue opened here https://github.com/filamentphp/filament/issues/14694
GitHub
Wizard Step depend on Select Value Causing Problem · Issue #14694 ·...
Package filament/filament Package Version 3.2.117 Laravel Version 11.27.2 Livewire Version 3.5.6 PHP Version 8.3.13 Problem description I have Wizard That has One Step and this step includes Toggle...
Want results from more Discord servers?
Add your server