© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
2 replies
Pablo Torres

Form, Grid to have Sections on main area with side area.

I have a form a want to display in like a main area with a side area.
Like this sample:
https://demo.filamentphp.com/shop/products/1/edit?activeRelationManager=0

I have the following code, what I'm doing wrong...?

    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Forms\Components\Grid::make([
                    'md' => 3,
                ])
                    ->schema([
                        Forms\Components\Section::make('Name')
                            ->schema([
                                Forms\Components\TextInput::make('name'),
                            ])
                            ->columns(2),
                        Forms\Components\Section::make('Date')
                            ->schema([
                                Forms\Components\DatePicker::make('created_at'),
                            ])
                            ->columns(1),
                    ]),
            ]);
    }
    public static function form(Form $form): Form
    {
        return $form
            ->schema([
                Forms\Components\Grid::make([
                    'md' => 3,
                ])
                    ->schema([
                        Forms\Components\Section::make('Name')
                            ->schema([
                                Forms\Components\TextInput::make('name'),
                            ])
                            ->columns(2),
                        Forms\Components\Section::make('Date')
                            ->schema([
                                Forms\Components\DatePicker::make('created_at'),
                            ])
                            ->columns(1),
                    ]),
            ]);
    }

The above code gives me the sections stacked and not "Name" on the left (2 columns) and "Date" on the right (in one column).

Thank you for your help.
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

Need assistance with arranging two sections side by side in Filament PHP form
FilamentFFilament / ❓┊help
2y ago
Relation on text area form?
FilamentFFilament / ❓┊help
3y ago
move getRelations() to especific area on form()
FilamentFFilament / ❓┊help
2y ago
Make two sections appear side by side
FilamentFFilament / ❓┊help
3y ago