© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
16 replies
iamgmd

InfoList components on create - Schema has no [record()] or [state()] set.

On my create/edit forms I have a section to display data rather than input it, a sort of heading (see image). I used a mix of layout and infolist since now in v4 we can mix and match?

Code is below but I am getting 'Schema has no [record()] or [state()] set.' on create, edit works ok. Should the components return null if there is no state or should I be tackling this in different way? i.e. maybe a custom component.


// Header
   Section::make()
       ->schema([
           Flex::make([
               Flex::make([
                   ImageEntry::make('avatar')
                       ->hiddenLabel()
                       ->circular()
                       ->imageHeight(60)
                       ->disk('public')
                       ->grow(false),
                   Grid::make([])
                       ->schema([
                           TextEntry::make('name')
                               ->hiddenLabel()
                               ->size(TextSize::Large)
                               ->weight(FontWeight::SemiBold),
                           Text::make('Company')
                       ])
                       ->grow(false)
                       ->gap(false)
               ]),
               Flex::make([]),
               Flex::make([
                   TextEntry::make('contact_name')
                       ->label('Contact')
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('contact_phone')
                       ->label('Phone')
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('created_at')
                       ->label('Created')
                       ->dateTime()
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('updated_at')
                       ->label('Updated')
                       ->dateTime()
                       ->size(TextSize::ExtraSmall),
               ])
           ]),
       ])
       ->columnSpanFull(),

// Header
   Section::make()
       ->schema([
           Flex::make([
               Flex::make([
                   ImageEntry::make('avatar')
                       ->hiddenLabel()
                       ->circular()
                       ->imageHeight(60)
                       ->disk('public')
                       ->grow(false),
                   Grid::make([])
                       ->schema([
                           TextEntry::make('name')
                               ->hiddenLabel()
                               ->size(TextSize::Large)
                               ->weight(FontWeight::SemiBold),
                           Text::make('Company')
                       ])
                       ->grow(false)
                       ->gap(false)
               ]),
               Flex::make([]),
               Flex::make([
                   TextEntry::make('contact_name')
                       ->label('Contact')
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('contact_phone')
                       ->label('Phone')
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('created_at')
                       ->label('Created')
                       ->dateTime()
                       ->size(TextSize::ExtraSmall),
                   TextEntry::make('updated_at')
                       ->label('Updated')
                       ->dateTime()
                       ->size(TextSize::ExtraSmall),
               ])
           ]),
       ])
       ->columnSpanFull(),
2025-08-14-10-07-46.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Infolist has no [record()] or [state()] set.
FilamentFFilament / ❓┊help
2y ago
Schema has no [record()] or [state()] set.
FilamentFFilament / ❓┊help
6mo ago
Create related record inside infolist
FilamentFFilament / ❓┊help
2y ago
Create record navigation active state
FilamentFFilament / ❓┊help
11mo ago