© 2026 Hedgehog Software, LLC

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

Form component Section have empty fields on edit entity page

When trying to open an editing page containing a section component, the fields of this section are not filled with default values.

Here is simple code:
public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Components\Section::make('Section')
                    ->schema([
                        Components\Select::make('select1')
                            ->options([
                                '1' => '1',
                                '2' => '2',
                                '3' => '3'
                            ])
                            ->default('2')
                            ->label('Select 1'),
                        Components\Select::make('select2')
                            ->options([
                                '1' => '1',
                                '2' => '2',
                                '3' => '3'
                            ])
                            ->default('3')
                            ->label('Select 1'),
                    ])
            ])->columns(1);
    }
public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Components\Section::make('Section')
                    ->schema([
                        Components\Select::make('select1')
                            ->options([
                                '1' => '1',
                                '2' => '2',
                                '3' => '3'
                            ])
                            ->default('2')
                            ->label('Select 1'),
                        Components\Select::make('select2')
                            ->options([
                                '1' => '1',
                                '2' => '2',
                                '3' => '3'
                            ])
                            ->default('3')
                            ->label('Select 1'),
                    ])
            ])->columns(1);
    }
image.png
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

Fields Empty on View Page
FilamentFFilament / ❓┊help
3mo ago
Select Field empty on Edit Page
FilamentFFilament / ❓┊help
2y ago
Edit form without fields
FilamentFFilament / ❓┊help
16mo ago
form relation fields in edit form not filling. it's empty
FilamentFFilament / ❓┊help
2y ago