F
Filament3mo 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
toeknee3mo ago
You would need to prevent skipping steps
ico
ico3mo 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
toeknee3mo ago
If you'd like to allow free navigation, so all the steps are skippable, use the skippableSteps() method:
ico
ico3mo ago
Does filament 2 have that also ?
toeknee
toeknee3mo ago
yep
ico
ico3mo ago
for the form builder...since i have used it in the table builder
toeknee
toeknee3mo ago
So where you are defining the wizard just add it to it Wizard::make('my_wizard')->steps()->skippableSteps(false)