F
Filament8mo ago
ico

Filament v2 Wizard Step mandatory

I have a step where the inputs are not required. But the step itself must be viewed before submitting . So the users must visit the step at least once before they submit the form. How can I do that ?
9 Replies
toeknee
toeknee8mo ago
You would need to prevent skipping steps
ico
icoOP8mo ago
how can i do that ? Till now if i have a required field in one of the steps it doesn;t skip it but on this step the user may or not fill a input both are valid
toeknee
toeknee8mo ago
If you'd like to allow free navigation, so all the steps are skippable, use the skippableSteps() method:
ico
icoOP8mo ago
Does filament 2 have that also ?
toeknee
toeknee8mo ago
yep
ico
icoOP8mo ago
for the form builder...since i have used it in the table builder
toeknee
toeknee8mo ago
So where you are defining the wizard just add it to it Wizard::make('my_wizard')->steps()->skippableSteps(false)
Want results from more Discord servers?
Add your server