© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
shafiqruslan

How to use relationship in Wizard Step?

for example like this

                     Forms\Components\Wizard\Step::make('Profile')
                        ->schema([
                            Fieldset::make()
                                ->relationship('userProfile')
                                ->schema([
                                    Forms\Components\Radio::make('gender')->options([
                                        'male' => 'Male',
                                        'female' => 'Female',
                                    ]),
                                    Forms\Components\Radio::make('status')->options([
                                        'active' => 'Active',
                                        'inactive' => 'Inactive',
                                    ]),
                                    Forms\Components\TextInput::make('identification_number'),
                                    Forms\Components\DatePicker::make('date_of_birth'),
                                    Forms\Components\TextInput::make('contact_number'),
                                    Forms\Components\TextInput::make('street_address'),
                                ])
                        ])
                        ->columns(2),
                     Forms\Components\Wizard\Step::make('Profile')
                        ->schema([
                            Fieldset::make()
                                ->relationship('userProfile')
                                ->schema([
                                    Forms\Components\Radio::make('gender')->options([
                                        'male' => 'Male',
                                        'female' => 'Female',
                                    ]),
                                    Forms\Components\Radio::make('status')->options([
                                        'active' => 'Active',
                                        'inactive' => 'Inactive',
                                    ]),
                                    Forms\Components\TextInput::make('identification_number'),
                                    Forms\Components\DatePicker::make('date_of_birth'),
                                    Forms\Components\TextInput::make('contact_number'),
                                    Forms\Components\TextInput::make('street_address'),
                                ])
                        ])
                        ->columns(2),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Wizard with steps from relationship
FilamentFFilament / ❓┊help
3y ago
How to Get wizard second step data (relationship ) on the handleRecordCreation
FilamentFFilament / ❓┊help
2y ago
How to skip Wizard step conditionally?
FilamentFFilament / ❓┊help
14mo ago
Error when I use searchable() in wizard step
FilamentFFilament / ❓┊help
3y ago