FilamentF
Filament17mo ago
Cushty

wizard step sharing from model

Hi I am trying to share the wizard steps from my Model, but it's causing the layout to not be full width and the has skippable steps stops working, Can you shed some light on how to properly setup the wizard to share steps? Thanks

   public function form(Form $form): Form
    {
        return $form->schema([
            Wizard::make(Application::formWizard())
        ]);

    }


    public function hasSkippableSteps(): bool
    {
        return true;
    }


public static function formWizard(): array
    {
        return [
            Step::make('Personal Information')
                ->description('Provide personal details')
                ->schema([
                    Select::make('user_id')
                        ->label('User')
                        ->options(User::all()->pluck('name', 'id'))
                        ->required(),
                    TextInput::make('first_name')
                        ->required(),
                    TextInput::make('last_name')
                        ->required(),
                    TextInput::make('public_profile_name')
                        ->required(),
Was this page helpful?